diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-06 23:27:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-06 23:27:09 +0100 |
commit | be493ca2a8c4e3a1c147f172cd6ace8673d36f84 (patch) | |
tree | 7dc499db9fc0ec37ecf82c550ef6a4453c776230 /libavcodec/h264.c | |
parent | bcaf64b605442e1622d16da89d4ec0e7730b8a8c (diff) | |
parent | c10da30d8426a1f681d99a780b6e311f7fb4e5c5 (diff) | |
download | ffmpeg-be493ca2a8c4e3a1c147f172cd6ace8673d36f84.tar.gz |
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.c | 6 |
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 && |