[FFmpeg-devel] [PATCH 03/10] ffplay: only quit from audio_decode_frame before decoding when paused

Marton Balint cus at passwd.hu
Sat Feb 23 02:30:34 CET 2013


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>
---
 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 5b5ae1d..88aa2e7 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;
         }
 
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list