aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-24 04:08:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-24 04:35:08 +0200
commit26ed595bd0e66c6982515988de0d858bc56d2362 (patch)
tree8f56bf6055109a5948cbe34c8f059846de60f48c /libavcodec/h264.c
parent1bc81bf981552ec542e14af194cd05d7c74a83e1 (diff)
parenta7a187a1beb8551101b592bf85f0f31a0db22f61 (diff)
downloadffmpeg-26ed595bd0e66c6982515988de0d858bc56d2362.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: configure: Add -U__STRICT_ANSI__ to CPPFLAGS on Cygwin and DOS. aacdec: fix typo in scalefactor clipping check fate: fix fate-h264-conformance-frext-pph10i4-panasonic-a crcs. fate: update 9/10bit refs. h264: Properly set coded_{width, height} when parsing H.264. x86 asm: Add SECTION_TEXT to dct32_sse.asm. Fix 9/10 bit in swscale. Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3a1f821d04..02152ad621 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1901,6 +1901,9 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
s->avctx->sample_aspect_ratio= h->sps.sar;
av_assert0(s->avctx->sample_aspect_ratio.den);
+ h->s.avctx->coded_width = 16*s->mb_width;
+ h->s.avctx->coded_height = 16*s->mb_height;
+
if(h->sps.video_signal_type_present_flag){
s->avctx->color_range = h->sps.full_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
if(h->sps.colour_description_present_flag){