[FFmpeg-cvslog] h264: print error on unsupported seperate color planes
Michael Niedermayer
git at videolan.org
Thu Jul 5 19:21:07 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 5 19:12:09 2012 +0200| [acb52d322818694da1c1e03c82bd887cddac8f3e] | committer: Michael Niedermayer
h264: print error on unsupported seperate color planes
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=acb52d322818694da1c1e03c82bd887cddac8f3e
---
libavcodec/h264_ps.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 41acff2..1e17944 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;
More information about the ffmpeg-cvslog
mailing list