diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-05 19:12:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-05 19:18:10 +0200 |
commit | acb52d322818694da1c1e03c82bd887cddac8f3e (patch) | |
tree | 73acaa2892b027e9521a65a4d41711c9ba349adb /libavcodec/h264_ps.c | |
parent | 50d0f6cee92833ad346a5ce915f3055c6c50f39f (diff) | |
download | ffmpeg-acb52d322818694da1c1e03c82bd887cddac8f3e.tar.gz |
h264: print error on unsupported seperate color planes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r-- | libavcodec/h264_ps.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 41acff2fb9..1e1794407f 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -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; |