Changeset 1983 for trunk/src/objects
- Timestamp:
- Dec 8, 2010, 1:57:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/objects/RpVideo.c
r1979 r1983 19 19 #include <string.h> 20 20 21 #include <libavcodec/avcodec.h> 22 #include <libavformat/avformat.h> 23 #include <libswscale/swscale.h> 21 #include "config.h" 22 23 #ifdef HAVE_FFMPEG_AVCODEC_H 24 # include <ffmpeg/avcodec.h> 25 #endif 26 27 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 28 # include <libavcodec/avcodec.h> 29 #endif 30 31 #ifdef HAVE_FFMPEG_AVFORMAT_H 32 # include <ffmpeg/avformat.h> 33 #endif 34 35 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H 36 # include <libavformat/avformat.h> 37 #endif 38 39 #ifdef HAVE_FFMPEG_AVUTIL_H 40 # include <ffmpeg/avutil.h> 41 #endif 42 43 #ifdef HAVE_LIBAVUTIL_AVUTIL_H 44 # include <libavutil/avutil.h> 45 #endif 46 47 #ifdef HAVE_FFMPEG_SWSCALE_H 48 # include <ffmpeg/swscale.h> 49 #endif 50 51 #ifdef HAVE_LIBSWSCALE_SWSCALE_H 52 # include <libswscale/swscale.h> 53 #endif 24 54 25 55 #include "RpVideo.h" … … 619 649 global_video_pkt_pts = packet.pts; 620 650 621 // avcodec_decode_video(vcodecCtx, vidPtr->pFrameYUV, 622 // &frameFinished, packet.data, packet.size); 623 624 // packet.flags = PKT_FLAG_KEY; 625 avcodec_decode_video2(vcodecCtx, vidPtr->pFrameYUV, 626 &frameFinished, &packet); 627 628 // avcodec_decode_video2(_pCodecCtx, _pFrame, &frameFinished, 629 // &_packet); 651 avcodec_decode_video(vcodecCtx, vidPtr->pFrameYUV, 652 &frameFinished, packet.data, packet.size); 653 654 // avcodec_decode_video2(vcodecCtx, vidPtr->pFrameYUV, 655 // &frameFinished, &packet); 630 656 631 657 if (packet.dts == AV_NOPTS_VALUE
Note: See TracChangeset
for help on using the changeset viewer.