Skip to content

Commit

Permalink
h264: Properly set coded_{width, height} when parsing H.264.
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
  • Loading branch information
felipec authored and DonDiego committed May 23, 2011
1 parent a10fb79 commit b47904d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavcodec/h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit b47904d

Please sign in to comment.