mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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>
This commit is contained in:
parent
d8962ffbd8
commit
874eb012f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue