Commit 48e43a19 authored by Marton Balint's avatar Marton Balint

ffplay: drop remaining frames in current audio avpacket when seeking

Fixes ticket #1928.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 4be7d578
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment