On Thu, Mar 13, 2014 at 04:27:21PM +0100, Vittorio Giovara wrote: > From: Piotr Bandurski <[email protected]> > > Signed-off-by: Vittorio Giovara <[email protected]> > --- > libavcodec/sgienc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c > index ab1e36f..003f6be 100644 > --- a/libavcodec/sgienc.c > +++ b/libavcodec/sgienc.c > @@ -30,6 +30,12 @@ > > static av_cold int encode_init(AVCodecContext *avctx) > { > + if (avctx->width > 65535 || avctx->height > 65535) { > + av_log(avctx, AV_LOG_ERROR, > + "Unsupported resolution %dx%d.\n", avctx->width, > avctx->height); > + return AVERROR_INVALIDDATA; > + } > + > avctx->coded_frame = av_frame_alloc(); > if (!avctx->coded_frame) > return AVERROR(ENOMEM); > --
probably OK _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
