On Mon, Apr 10, 2017 at 12:42:55PM +0200, Luca Barbato wrote:
> --- a/libavcodec/utvideodec.c
> +++ b/libavcodec/utvideodec.c
> @@ -484,28 +675,37 @@ static av_cold int decode_init(AVCodecContext *avctx)
> -    if (avctx->extradata_size < 16) {
> +    if (avctx->extradata_size >= 16) {
> +        av_log(avctx, AV_LOG_DEBUG, "Encoder version %d.%d.%d.%d\n",
> +               avctx->extradata[3], avctx->extradata[2],
> +               avctx->extradata[1], avctx->extradata[0]);

extradata is uint8_t*, so this should be PRIu8. Maybe it could be done
in a separate patch though.

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

Reply via email to