[FFmpeg-cvslog] vc1dec: use codec_id instead of codec_tag for VC1IMAGE

Vladimir Pantelic git at videolan.org
Wed Feb 6 14:51:46 CET 2013


ffmpeg | branch: master | Vladimir Pantelic <vladoman at gmail.com> | Tue Feb  5 13:31:43 2013 +0100| [77bcb89600e79fbf37d4b739480813ef03292c5b] | committer: Kostya Shishkov

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 <vladoman at gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77bcb89600e79fbf37d4b739480813ef03292c5b
---

 libavcodec/vc1dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list