[FFmpeg-devel] [PATCH 1/3] vc1: only do basic header parsing when using a hwaccel

Hendrik Leppkes h.leppkes at gmail.com
Sun Aug 19 20:34:07 CEST 2012


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

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 2fc4913..3d37fb4 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5136,6 +5136,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
     else
         avctx->pix_fmt = PIX_FMT_GRAY8;
     avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt);
+    v->parse_only = avctx->hwaccel != NULL;
     v->s.avctx = avctx;
     avctx->flags |= CODEC_FLAG_EMU_EDGE;
     v->s.flags   |= CODEC_FLAG_EMU_EDGE;
-- 
1.7.10.msysgit.1



More information about the ffmpeg-devel mailing list