Browse Source

demux: mp4: only return true in GetMoofTrackDuration with a duration

If for some reason there is no traf, we returned true even though p_duration was never set.

(cherry picked from commit b76b5e7325)
cherry-pick-c5513cf9
Steve Lhomme 1 year ago
parent
commit
b6be9a811b
  1. 4
      modules/demux/mp4/mp4.c

4
modules/demux/mp4/mp4.c

@ -4244,10 +4244,10 @@ static bool GetMoofTrackDuration( MP4_Box_t *p_moov, MP4_Box_t *p_moof,
}
*p_duration = i_traf_duration;
break;
return true;
}
return true;
return false;
}
static int ProbeFragments( demux_t *p_demux, bool b_force, bool *pb_fragmented )

Loading…
Cancel
Save