[FFmpeg-devel] [PATCH] avcodec/hevc_ps: do cleanup in case of unsupported bit depth

Mickaël Raulet mraulet at gmail.com
Wed Aug 20 09:26:56 CEST 2014


Ok.

Mickael

Le mercredi 20 août 2014, Timothy Gu <timothygu99 at gmail.com> a écrit :

> On Tue, Aug 19, 2014 at 6:49 PM, Michael Niedermayer <michaelni at gmx.at
> <javascript:;>> wrote:
> > Fixes memleak
> > Fixes CID1231989
> >
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at <javascript:;>>
> > ---
> >  libavcodec/hevc_ps.c |    3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
>
> Looks OK.
>
> >
> > diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
> > index 163c5e4..2ccce5f 100644
> > --- a/libavcodec/hevc_ps.c
> > +++ b/libavcodec/hevc_ps.c
> > @@ -810,7 +810,8 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
> >      default:
> >          av_log(s->avctx, AV_LOG_ERROR,
> >                 "4:2:0, 4:2:2, 4:4:4 supports are currently specified
> for 8, 10 and 12 bits.\n");
> > -        return AVERROR_PATCHWELCOME;
> > +        ret = AVERROR_PATCHWELCOME;
> > +        goto err;
> >      }
> >
> >      desc = av_pix_fmt_desc_get(sps->pix_fmt);
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org <javascript:;>
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org <javascript:;>
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list