h264: print error on unsupported seperate color planes
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Jul 2012 17:12:09 +0000 (19:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Jul 2012 17:18:10 +0000 (19:18 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_ps.c

index 41acff2..1e17944 100644 (file)
@@ -359,6 +359,10 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
             goto fail;
         } else if(sps->chroma_format_idc == 3) {
             sps->residual_color_transform_flag = get_bits1(&s->gb);
+            if(sps->residual_color_transform_flag) {
+                av_log(h->s.avctx, AV_LOG_ERROR, "separate color planes are not supported\n");
+                goto fail;
+            }
         }
         sps->bit_depth_luma   = get_ue_golomb(&s->gb) + 8;
         sps->bit_depth_chroma = get_ue_golomb(&s->gb) + 8;