mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-19 21:40:21 +08:00
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
This commit is contained in:
4
ffmpeg.c
4
ffmpeg.c
@ -1139,7 +1139,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
|||||||
|
|
||||||
len = pkt->size;
|
len = pkt->size;
|
||||||
ptr = pkt->data;
|
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:
|
handle_eof:
|
||||||
ist->pts= ist->next_pts;
|
ist->pts= ist->next_pts;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user