On Fri, Aug 17, 2018 at 11:45:04AM +0530, Gagandeep Singh wrote: [...] > > > [...] > > > @@ -726,14 +814,15 @@ static int cfhd_decode(AVCodecContext *avctx, void > > *data, int *got_frame, > > > } > > > } > > > } > > > - > > > - if (!s->a_width || !s->a_height || s->a_format == AV_PIX_FMT_NONE || > > > - s->coded_width || s->coded_height || s->coded_format != > > AV_PIX_FMT_NONE) { > > > > > + //disabled to run mountain sample file > > > +#if 0 > > > + if ((!s->a_width || !s->a_height || s->a_format == AV_PIX_FMT_NONE > > || > > > + s->coded_width || s->coded_height || s->coded_format != > > AV_PIX_FMT_NONE) && s->sample_type != 1) { > > > av_log(avctx, AV_LOG_ERROR, "Invalid dimensions\n"); > > > ret = AVERROR(EINVAL); > > > goto end; > > > } > > > - > > > +#endif > > > > please elaborate why this needs to be disabled > > i presume this code was needed for something > > > I didn't need to disable this for any sample except one, where the image > height and width data wasn't transfered in accordance to how it was in the > rest of the sample so the flow of code was just causing the decoder to > crash. I can produce a more robust fix, though again will need to repost > other patches as well, please comment. > > > also this decoder with the patches should be tested with a fuzzer to > > reduce > > the chance of bugs > > > > I don't know how to use 'fuzzer', sorry, though i can look into that.
had missed this reply as its not quoted correctly yes, please look into testing this with a fuzzer, we should make reasonable sure we dont add anomalies thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of democracy, and the most aggravated form of tyranny and slavery out of the most extreme liberty. -- Plato
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel