summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-05 19:12:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-05 19:18:10 +0200
commitacb52d322818694da1c1e03c82bd887cddac8f3e (patch)
tree73acaa2892b027e9521a65a4d41711c9ba349adb /libavcodec/h264_ps.c
parent50d0f6cee92833ad346a5ce915f3055c6c50f39f (diff)
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.c4
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;