summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-06 23:27:09 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-06 23:27:09 +0100
commitbe493ca2a8c4e3a1c147f172cd6ace8673d36f84 (patch)
tree7dc499db9fc0ec37ecf82c550ef6a4453c776230 /libavcodec/h264.c
parentbcaf64b605442e1622d16da89d4ec0e7730b8a8c (diff)
parentc10da30d8426a1f681d99a780b6e311f7fb4e5c5 (diff)
Merge commit 'c10da30d8426a1f681d99a780b6e311f7fb4e5c5'
* commit 'c10da30d8426a1f681d99a780b6e311f7fb4e5c5': shorten: set invalid channels count to 0 vorbisdec: check memory allocations h264: check for luma and chroma bit dept being equal Conflicts: libavcodec/shorten.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 659c0232ac..e8eca16340 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2865,6 +2865,12 @@ static int h264_set_parameter_from_sps(H264Context *h)
if (h->avctx->has_b_frames < 2)
h->avctx->has_b_frames = !h->low_delay;
+ if (h->sps.bit_depth_luma != h->sps.bit_depth_chroma) {
+ av_log_missing_feature(h->avctx,
+ "Different bit depth between chroma and luma", 1);
+ return AVERROR_PATCHWELCOME;
+ }
+
if (h->avctx->bits_per_raw_sample != h->sps.bit_depth_luma ||
h->cur_chroma_format_idc != h->sps.chroma_format_idc) {
if (h->avctx->codec &&