[FFmpeg-cvslog] r14220 - trunk/ffmpeg.c
michael
subversion
Sun Jul 13 23:39:18 CEST 2008
Author: michael
Date: Sun Jul 13 23:39:18 2008
New Revision: 14220
Log:
On EOF keep calling the decoders until they do not output anything
anymore, instead of just once.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Sun Jul 13 23:39:18 2008
@@ -1139,7 +1139,9 @@ static int output_packet(AVInputStream *
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;
More information about the ffmpeg-cvslog
mailing list