Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1901
  • Loading branch information
jeanlf committed Aug 30, 2021
1 parent f1ae01d commit 5dd71c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filters/reframe_nalu.c
Expand Up @@ -1352,9 +1352,9 @@ void 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->timescale) {
if (!ctx->timescale && 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;
ctx->cur_fps.den = 2 * sps->vui.num_units_in_tick * DeltaTfiDivisorIdx;

if (!ctx->fps.num && ctx->dts==ctx->fps.den)
ctx->dts = ctx->cur_fps.den;
Expand Down

0 comments on commit 5dd71c7

Please sign in to comment.