mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/apng: fix setting frame delay when max_fps is set to no limit
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 874eb012f7
)
This commit is contained in:
parent
4c97b79cf5
commit
48706b9fef
@ -269,7 +269,7 @@ static int decode_fctl_chunk(AVFormatContext *s, APNGDemuxContext *ctx, AVPacket
|
||||
/* default is hundredths of seconds */
|
||||
if (!delay_den)
|
||||
delay_den = 100;
|
||||
if (!delay_num || delay_den / delay_num > ctx->max_fps) {
|
||||
if (!delay_num || (ctx->max_fps && delay_den / delay_num > ctx->max_fps)) {
|
||||
delay_num = 1;
|
||||
delay_den = ctx->default_fps;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user