diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2011-05-20 00:39:12 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-05-23 13:15:55 +0200 |
commit | b47904d158709bdec1a9d40e83d1abadf50081dc (patch) | |
tree | 3b62e64680e1c713e84d8a289ae2ffdb527ada37 | |
parent | a10fb79070c017be613700b946f51baed4f69df0 (diff) | |
download | ffmpeg-b47904d158709bdec1a9d40e83d1abadf50081dc.tar.gz |
h264: Properly set coded_{width, height} when parsing H.264.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 5fb303c82f..eb873a4855 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1914,6 +1914,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){ |