diff options
author | Marton Balint <cus@passwd.hu> | 2013-02-16 20:53:07 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-02-27 21:34:12 +0100 |
commit | 48e43a1999fb47c0afb1b5c148e48262c84ec5ad (patch) | |
tree | 8cf5fddaed85db45a7fcca07f7d7f35e1b0b5c8d /ffplay.c | |
parent | 4be7d578a3cf03a77a277c78d6cf1420f87a7593 (diff) | |
download | ffmpeg-48e43a1999fb47c0afb1b5c148e48262c84ec5ad.tar.gz |
ffplay: drop remaining frames in current audio avpacket when seeking
Fixes ticket #1928.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |