Skip to content
Snippets Groups Projects
Commit 48e43a19 authored by Marton Balint's avatar Marton Balint
Browse files

ffplay: drop remaining frames in current audio avpacket when seeking


Fixes ticket #1928.

Signed-off-by: default avatarMarton Balint <cus@passwd.hu>
parent 4be7d578
No related branches found
No related tags found
No related merge requests found
...@@ -2090,6 +2090,9 @@ static int audio_decode_frame(VideoState *is) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment