Skip to content
Snippets Groups Projects
Commit bd6754aa authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

On EOF keep calling the decoders until they do not output anything

anymore, instead of just once.

Originally committed as revision 14220 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f9690589
No related branches found
No related tags found
No related merge requests found
......@@ -1139,7 +1139,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
len = pkt->size;
ptr = pkt->data;
while (len > 0) {
//while we have more to decode or while the decoder did output something on EOF
while (len > 0 || (!pkt && ist->next_pts != ist->pts)) {
handle_eof:
ist->pts= ist->next_pts;
......
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