On Sat, Jun 27, 2015 at 07:42:48PM +0200, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> > --- > libavcodec/huffyuvdec.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c > index 98c6128..71fb9e3 100644 > --- a/libavcodec/huffyuvdec.c > +++ b/libavcodec/huffyuvdec.c > @@ -291,6 +291,12 @@ static av_cold int decode_init(AVCodecContext *avctx) > HYuvContext *s = avctx->priv_data; > int ret; > > + if (avctx->width <= 0 || avctx->height <= 0) {
LGTM alternatively av_image_check_size() could be used but this should be equally fine [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB What does censorship reveal? It reveals fear. -- Julian Assange
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel