On Thu, Nov 24, 2016 at 09:35:42PM +0100, Martin Vignali wrote:
> Hello
>
> New patchs in attach
>
> I changed the dimensions check, the check is now :
> ----------------------------------------
> if ((s->height > 30000) && (s->avctx->strict_std_compliance >
> FF_COMPLIANCE_EXPERIMENTAL)) {
> av_log(s->avctx, AV_LOG_ERROR,
> "Height > 30000 is experimental, add "
> "'-strict %d' if you want to try to decode the picture.\n",
> FF_COMPLIANCE_EXPERIMENTAL);
> return AVERROR_EXPERIMENTAL;
> }
>
> s->width = bytestream2_get_be32(&s->gb);
> if ((s->width > 30000) && (s->avctx->strict_std_compliance >
> FF_COMPLIANCE_EXPERIMENTAL)) {
> av_log(s->avctx, AV_LOG_ERROR,
> "Width > 30000 is experimental, add "
> "'-strict %d' if you want to try to decode the picture.\n",
> FF_COMPLIANCE_EXPERIMENTAL);
> return AVERROR_EXPERIMENTAL;
> }
> ----------------------------------------
>
> and change the line_size variable (in PSD Context) to uint_64 (because now,
> width can be > 30000 if -strict set to experimental)
>
> I will send a patch for fate test in another discussion.
>
> Martin> Changelog | 1 > doc/general.texi | 2 > libavcodec/Makefile | 1 > libavcodec/allcodecs.c | 1 > libavcodec/avcodec.h | 1 > libavcodec/codec_desc.c | 7 > libavcodec/psd.c | 435 > ++++++++++++++++++++++++++++++++++++++++++++++++ > libavcodec/version.h | 4 > 8 files changed, 450 insertions(+), 2 deletions(-) If you want to maintain this code, then please add yourself to the MAINTAINER file too [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No snowflake in an avalanche ever feels responsible. -- Voltaire
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
