Browse Source

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
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
bd6754aa79
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ffmpeg.c

+ 3
- 1
ffmpeg.c View File

@@ -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;



Loading…
Cancel
Save