[FFmpeg-devel] [PATCH 2/2] apng: Fix wrong default final frame delay in muxer

Michael Niedermayer michael at niedermayer.cc
Wed Jul 15 23:14:06 CEST 2015


On Mon, Jul 13, 2015 at 08:17:42AM +0000, Donny Yang wrote:
> ---
>  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) {

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150715/fcadeea6/attachment.sig>


More information about the ffmpeg-devel mailing list