mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
h264: print error on unsupported seperate color planes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
50d0f6cee9
commit
acb52d3228
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user