On Tue, Feb 05, 2013 at 05:46:27PM +0100, Vladimir Pantelic wrote:
> see $subject, current behaviour forces the user to set the codec_tag to
> "WVP2" which is otherwise unneeded since the rest of the codec queries
> codec_id already.

> >From 9459553eb09d41f59b083e262fb218319d97f397 Mon Sep 17 00:00:00 2001
> From: Vladimir Pantelic <[email protected]>
> Date: Tue, 5 Feb 2013 13:31:43 +0100
> Subject: [PATCH] vc1dec: use codec_id instead of codec_tag for VC1IMAGE
> 
> the rest of the code is using codec_id everywhere already
> 
> Signed-off-by: Vladimir Pantelic <[email protected]>
> ---
>  libavcodec/vc1dec.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
> index a74e537..81b0966 100644
> --- a/libavcodec/vc1dec.c
> +++ b/libavcodec/vc1dec.c
> @@ -5231,7 +5231,7 @@ static av_cold int vc1_decode_init(AVCodecContext 
> *avctx)
>              av_log(avctx, AV_LOG_ERROR, "Incomplete extradata\n");
>              return -1;
>          }
> -        v->res_sprite = (avctx->codec_tag == MKTAG('W','V','P','2'));
> +        v->res_sprite = (avctx->codec_id == AV_CODEC_ID_VC1IMAGE);
>      }
>  
>      avctx->profile = v->profile;
> -- 

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

Reply via email to