[FFmpeg-cvslog] apng: Fix wrong default final frame delay in muxer

Donny Yang git at videolan.org
Wed Jul 15 23:15:01 CEST 2015


ffmpeg | branch: master | Donny Yang <work at kota.moe> | Mon Jul 13 08:17:42 2015 +0000| [99b0cadd1388181296e01091acfef20e0dbd33c6] | committer: Michael Niedermayer

apng: Fix wrong default final frame delay in muxer

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=99b0cadd1388181296e01091acfef20e0dbd33c6
---

 libavformat/apngenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c
index dcf6b90..9b2c634 100644
--- a/libavformat/apngenc.c
+++ b/libavformat/apngenc.c
@@ -173,7 +173,7 @@ static void flush_packet(AVFormatContext *format_context, AVPacket *packet)
                                "Frame rate is too high or specified too precisely. Unable to copy losslessly.\n");
                         apng->framerate_warned = 1;
                     }
-                } else if (apng->last_delay.den > 0) {
+                } else if (apng->last_delay.num > 0) {
                     delay = apng->last_delay;
                 } else {
                     delay = apng->prev_delay;



More information about the ffmpeg-cvslog mailing list