Mercurial > mm7
diff MediaPlayer.cpp @ 2319:9987f93d7e1f
stuff.h
author | Ritor1 |
---|---|
date | Thu, 20 Mar 2014 18:44:27 +0600 |
parents | 58be29479e75 |
children | 182effc4b0ee |
line wrap: on
line diff
--- a/MediaPlayer.cpp Thu Mar 20 17:38:29 2014 +0600 +++ b/MediaPlayer.cpp Thu Mar 20 18:44:27 2014 +0600 @@ -7,7 +7,6 @@ #include "lib/libswscale/swscale.h" #include "lib/libswresample/swresample.h" #include "lib/libavutil/opt.h" - //#include "libavutil/samplefmt.h" } #pragma comment(lib, "avcodec.lib") #pragma comment(lib, "avformat.lib") @@ -25,8 +24,6 @@ using namespace Media; - - class MemoryStream { public: @@ -662,9 +659,9 @@ { } - virtual void GetNextFrame(double dt, void *dst_surface) + virtual void GetNextFrame(double dt, void *dst_surface)// рисует сразу на экран { - playback_time += dt; + playback_time += dt;//изменение времени AVPacket *avpacket = decoding_packet; AVFrame *avframe = decoding_frame; @@ -680,7 +677,7 @@ volatile int decoded = false; do { - if (av_read_frame(format_ctx, avpacket) < 0) + if (av_read_frame(format_ctx, avpacket) < 0) //воспроизведение завершено { // probably movie is finished __debugbreak();