On 12/11/14 11:13, Vittorio Giovara wrote:
> CC: libav-sta...@libav.org
> Bug-Id: CID 1135739
> ---
>  libavcodec/g2meet.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
> index c405f38..33934f1 100644
> --- a/libavcodec/g2meet.c
> +++ b/libavcodec/g2meet.c
> @@ -719,8 +719,11 @@ static int g2m_decode_frame(AVCodecContext *avctx, void 
> *data,
>                  ret = AVERROR_INVALIDDATA;
>                  goto header_fail;
>              }
> -            if (c->width != avctx->width || c->height != avctx->height)
> -                ff_set_dimensions(avctx, c->width, c->height);
> +            if (c->width != avctx->width || c->height != avctx->height) {
> +                ret = ff_set_dimensions(avctx, c->width, c->height);
> +                if (ret < 0)
> +                    return ret;
> +            }
>              c->compression = bytestream2_get_be32(&bc);
>              if (c->compression != 2 && c->compression != 3) {
>                  av_log(avctx, AV_LOG_ERROR,
> 

Ok.
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to