[FFmpeg-cvslog] ffplay: drop remaining frames in current audio avpacket when seeking

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:53:07 2013 +0100| [48e43a1999fb47c0afb1b5c148e48262c84ec5ad] | committer: Marton Balint

ffplay: drop remaining frames in current audio avpacket when seeking

Fixes ticket #1928.

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

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

 ffplay.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index d5a9dc3..ed53023 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;
 



More information about the ffmpeg-cvslog mailing list