1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-04-24 17:12:34 +02:00

ffplay: drop remaining frames in current audio avpacket when seeking

Fixes ticket #1928.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2013-02-16 20:53:07 +01:00
parent 4be7d578a3
commit 48e43a1999

View File

@ -2090,6 +2090,9 @@ static int audio_decode_frame(VideoState *is)
} else } else
avcodec_get_frame_defaults(is->frame); avcodec_get_frame_defaults(is->frame);
if (is->audioq.serial != is->audio_pkt_temp_serial)
break;
if (is->paused) if (is->paused)
return -1; return -1;