[FFmpeg-cvslog] ffplay: only quit from audio_decode_frame before decoding when paused

Marton Balint git at videolan.org
Thu Feb 28 01:48:42 CET 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Feb 16 20:56:19 2013 +0100| [3070600d9b14b2e48637eb252a48b388195fda58] | committer: Marton Balint

ffplay: only quit from audio_decode_frame before decoding when paused

This way the audio clock is updated to a proper value even when the video is
paused.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3070600d9b14b2e48637eb252a48b388195fda58
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index ed53023..4f24a32 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2196,7 +2196,7 @@ static int audio_decode_frame(VideoState *is)
             av_free_packet(pkt);
         memset(pkt_temp, 0, sizeof(*pkt_temp));
 
-        if (is->paused || is->audioq.abort_request) {
+        if (is->audioq.abort_request) {
             return -1;
         }
 



More information about the ffmpeg-cvslog mailing list