mirror of https://git.ffmpeg.org/ffmpeg.git
call AVCodec.flush() for audio too
Originally committed as revision 7061 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1fc17d1582
commit
0bc5ccb899
1
ffplay.c
1
ffplay.c
|
@ -1922,6 +1922,7 @@ static int decode_thread(void *arg)
|
||||||
}else{
|
}else{
|
||||||
if (is->audio_stream >= 0) {
|
if (is->audio_stream >= 0) {
|
||||||
packet_queue_flush(&is->audioq);
|
packet_queue_flush(&is->audioq);
|
||||||
|
avcodec_flush_buffers(ic->streams[audio_index]->codec);
|
||||||
}
|
}
|
||||||
if (is->subtitle_stream >= 0) {
|
if (is->subtitle_stream >= 0) {
|
||||||
packet_queue_flush(&is->subtitleq);
|
packet_queue_flush(&is->subtitleq);
|
||||||
|
|
Loading…
Reference in New Issue