Commit acb52d32 authored by Michael Niedermayer's avatar Michael Niedermayer

h264: print error on unsupported seperate color planes

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 50d0f6ce
...@@ -359,6 +359,10 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){ ...@@ -359,6 +359,10 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
goto fail; goto fail;
} else if(sps->chroma_format_idc == 3) { } else if(sps->chroma_format_idc == 3) {
sps->residual_color_transform_flag = get_bits1(&s->gb); 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_luma = get_ue_golomb(&s->gb) + 8;
sps->bit_depth_chroma = get_ue_golomb(&s->gb) + 8; sps->bit_depth_chroma = get_ue_golomb(&s->gb) + 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment