Commit 0bc5ccb8 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

call AVCodec.flush() for audio too

Originally committed as revision 7061 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1fc17d15
......@@ -1922,6 +1922,7 @@ static int decode_thread(void *arg)
}else{
if (is->audio_stream >= 0) {
packet_queue_flush(&is->audioq);
avcodec_flush_buffers(ic->streams[audio_index]->codec);
}
if (is->subtitle_stream >= 0) {
packet_queue_flush(&is->subtitleq);
......
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