On Thu, Feb 25, 2016 at 11:38:44PM -0500, Vittorio Giovara wrote:
> --- a/libavcodec/eatqi.c
> +++ b/libavcodec/eatqi.c
> @@ -37,6 +37,7 @@
>  
>  typedef struct TqiContext {
> +    AVCodecContext *avctx;
>      GetBitContext gb;
> @@ -79,8 +80,11 @@ static int tqi_decode_mb(TqiContext *t, int16_t 
> (*block)[64])
>                                                t->last_dc, block[n], n, 1);
> -        if (ret < 0)
> +        if (ret < 0) {
> +            av_log(t->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n",
> +                   t->mb_x, t->mb_y);
>              return -1;
> +        }
>      }

Why embed a full AVCodecContext if all you want to do is a bit of logging?

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to