Mercurial > libavcodec.hg
comparison h264.c @ 10560:d126f819ea24 libavcodec
Use avcodec_set_dimensions()
author | michael |
---|---|
date | Mon, 23 Nov 2009 19:45:40 +0000 |
parents | 95f3daa991a2 |
children | 26dc0444fa93 |
comparison
equal
deleted
inserted
replaced
10559:93b8130bf480 | 10560:d126f819ea24 |
---|---|
3830 | 3830 |
3831 for(i = 0; i < s->avctx->thread_count; i++) | 3831 for(i = 0; i < s->avctx->thread_count; i++) |
3832 if(context_init(h->thread_context[i]) < 0) | 3832 if(context_init(h->thread_context[i]) < 0) |
3833 return -1; | 3833 return -1; |
3834 | 3834 |
3835 s->avctx->width = s->width; | 3835 avcodec_set_dimensions(s->avctx, s->width, s->height); |
3836 s->avctx->height = s->height; | |
3837 s->avctx->sample_aspect_ratio= h->sps.sar; | 3836 s->avctx->sample_aspect_ratio= h->sps.sar; |
3838 if(!s->avctx->sample_aspect_ratio.den) | 3837 if(!s->avctx->sample_aspect_ratio.den) |
3839 s->avctx->sample_aspect_ratio.den = 1; | 3838 s->avctx->sample_aspect_ratio.den = 1; |
3840 | 3839 |
3841 if(h->sps.timing_info_present_flag){ | 3840 if(h->sps.timing_info_present_flag){ |