On Mon, Feb 14, 2022 at 08:56:51PM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: -nan is outside the range of representable values of type 'long' > > Fixes: > > 44614/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6216204841254912 > > > > Found-by: continuous fuzzing process > > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > > --- > > libavformat/matroskadec.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c > > index 91f3567692..8f0c53a6bc 100644 > > --- a/libavformat/matroskadec.c > > +++ b/libavformat/matroskadec.c > > @@ -3065,6 +3065,8 @@ static int matroska_read_header(AVFormatContext *s) > > > > if (!matroska->time_scale) > > matroska->time_scale = 1000000; > > + if (isnan(matroska->duration)) > > + matroska->duration = 0; > > if (matroska->duration) > > matroska->ctx->duration = matroska->duration * > > matroska->time_scale * > > 1000 / AV_TIME_BASE; > > LGTM.
will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you fake or manipulate statistics in a paper in physics you will never get a job again. If you fake or manipulate statistics in a paper in medicin you will get a job for life at the pharma industry.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".