Skip to content

Commit

Permalink
fixed #2476
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed May 22, 2023
1 parent c88df2e commit 047f96f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/filters/reframe_nalu.c
Expand Up @@ -1509,10 +1509,13 @@ Bool naludmx_create_avc_decoder_config(GF_NALUDmxCtx *ctx, u8 **dsi, u32 *dsi_si
else
DeltaTfiDivisorIdx = (ctx->avc_state->sei.pic_timing.pic_struct+1) / 2;
}
if (ctx->notime && sps->vui.time_scale && sps->vui.num_units_in_tick) {
ctx->cur_fps.num = 2 * sps->vui.time_scale;
ctx->cur_fps.den = 2 * sps->vui.num_units_in_tick * DeltaTfiDivisorIdx;

if (ctx->notime) {
u32 fps_num = 2 * sps->vui.time_scale;
u32 fps_den = 2 * sps->vui.num_units_in_tick * DeltaTfiDivisorIdx;
if (fps_num && fps_den) {
ctx->cur_fps.num = fps_num;
ctx->cur_fps.den = fps_den;
}
if (!ctx->fps.num && ctx->dts==ctx->fps.den)
ctx->dts = ctx->cur_fps.den;
}
Expand Down

0 comments on commit 047f96f

Please sign in to comment.