]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegvideo_xvmc.c
intrax8: Check and propagate errors from ff_intrax8_common_init
[ffmpeg] / libavcodec / mpegvideo_xvmc.c
index fb2dd8014073a64e8549cd7b89d780c64ea317c2..b7de79c5832475b1328b50c336d986688d07d768 100644 (file)
@@ -285,7 +285,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
             cbp++;
     }
 
-    if (s->flags & CODEC_FLAG_GRAY) {
+    if (s->avctx->flags & AV_CODEC_FLAG_GRAY) {
         if (s->mb_intra) {                                   // intra frames are always full chroma blocks
             for (i = 4; i < blocks_per_mb; i++) {
                 memset(s->pblocks[i], 0, sizeof(*s->pblocks[i]));  // so we need to clear them