[FFmpeg-devel] [PATCH 02/10] ffplay: drop remaining frames in current audio avpacket when seeking

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


Fixes ticket #1928.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 ffplay.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index 114428b..5b5ae1d 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2090,6 +2090,9 @@ static int audio_decode_frame(VideoState *is)
             } else
                 avcodec_get_frame_defaults(is->frame);
 
+            if (is->audioq.serial != is->audio_pkt_temp_serial)
+                break;
+
             if (is->paused)
                 return -1;
 
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list