@@ -632,31 +632,31 @@ static int read_header(FFV1Context *f)
632
632
f -> state_transition [i ] = get_symbol (c , state , 1 ) + c -> one_state [i ];
633
633
}
634
634
635
- colorspace = get_symbol (c , state , 0 ); //YUV cs type
635
+ colorspace = get_symbol (c , state , 0 ); //YUV cs type
636
636
bits_per_raw_sample = f -> version > 0 ? get_symbol (c , state , 0 ) : f -> avctx -> bits_per_raw_sample ;
637
- chroma_planes = get_rac (c , state );
638
- chroma_h_shift = get_symbol (c , state , 0 );
639
- chroma_v_shift = get_symbol (c , state , 0 );
640
- transparency = get_rac (c , state );
637
+ chroma_planes = get_rac (c , state );
638
+ chroma_h_shift = get_symbol (c , state , 0 );
639
+ chroma_v_shift = get_symbol (c , state , 0 );
640
+ transparency = get_rac (c , state );
641
641
642
642
if (f -> plane_count ) {
643
- if ( colorspace != f -> colorspace
644
- || bits_per_raw_sample != f -> avctx -> bits_per_raw_sample
645
- || chroma_planes != f -> chroma_planes
646
- || chroma_h_shift != f -> chroma_h_shift
647
- || chroma_v_shift != f -> chroma_v_shift
648
- || transparency != f -> transparency ) {
643
+ if (colorspace != f -> colorspace ||
644
+ bits_per_raw_sample != f -> avctx -> bits_per_raw_sample ||
645
+ chroma_planes != f -> chroma_planes ||
646
+ chroma_h_shift != f -> chroma_h_shift ||
647
+ chroma_v_shift != f -> chroma_v_shift ||
648
+ transparency != f -> transparency ) {
649
649
av_log (f -> avctx , AV_LOG_ERROR , "Invalid change of global parameters\n" );
650
650
return AVERROR_INVALIDDATA ;
651
651
}
652
652
}
653
653
654
- f -> colorspace = colorspace ;
654
+ f -> colorspace = colorspace ;
655
655
f -> avctx -> bits_per_raw_sample = bits_per_raw_sample ;
656
- f -> chroma_planes = chroma_planes ;
657
- f -> chroma_h_shift = chroma_h_shift ;
658
- f -> chroma_v_shift = chroma_v_shift ;
659
- f -> transparency = transparency ;
656
+ f -> chroma_planes = chroma_planes ;
657
+ f -> chroma_h_shift = chroma_h_shift ;
658
+ f -> chroma_v_shift = chroma_v_shift ;
659
+ f -> transparency = transparency ;
660
660
661
661
f -> plane_count = 2 + f -> transparency ;
662
662
}
0 commit comments