]> git.sesse.net Git - ffmpeg/commitdiff
ffv1: fix version=2 chroma handling
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Apr 2012 13:03:40 +0000 (15:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Apr 2012 14:01:37 +0000 (16:01 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1.c

index 3eee96305427a0b79e892699b7633ba847be5742..ca58d09823c1d094088c7bda5cf478679426a230 100644 (file)
@@ -1556,7 +1556,7 @@ static int read_extra_header(FFV1Context *f){
     }
     f->colorspace= get_symbol(c, state, 0); //YUV cs type
     f->avctx->bits_per_raw_sample= get_symbol(c, state, 0);
-    get_rac(c, state); //no chroma = false
+    f->chroma_planes= get_rac(c, state);
     f->chroma_h_shift= get_symbol(c, state, 0);
     f->chroma_v_shift= get_symbol(c, state, 0);
     f->transparency= get_rac(c, state);