Mercurial > libavcodec.hg
diff mpegvideo.c @ 1402:f662e9c86cf2 libavcodec
* fixing a regression in mpeg encoder (not setting pix_fmt),
this is hardly the right way to do things, but it'll suffice for now.
* patch from Gildas Bazin
gbazin at altern dot org
* fix for a 10l in configure
* gcc 2.95.3 and Solaris build in general are not ready
for -Werror in libavformat/Makefile
author | romansh |
---|---|
date | Tue, 12 Aug 2003 18:20:29 +0000 |
parents | 2e43c9bdc982 |
children | c2e63cb94d06 |
line wrap: on
line diff
--- a/mpegvideo.c Tue Aug 12 10:00:31 2003 +0000 +++ b/mpegvideo.c Tue Aug 12 18:20:29 2003 +0000 @@ -540,6 +540,8 @@ int i; int chroma_h_shift, chroma_v_shift; + avctx->pix_fmt = PIX_FMT_YUV420P; // FIXME + s->bit_rate = avctx->bit_rate; s->bit_rate_tolerance = avctx->bit_rate_tolerance; s->width = avctx->width; @@ -1515,6 +1517,7 @@ pic->quality = s->reordered_input_picture[0]->quality; pic->coded_picture_number = s->reordered_input_picture[0]->coded_picture_number; pic->reference = s->reordered_input_picture[0]->reference; + pic->pts = s->reordered_input_picture[0]->pts; alloc_picture(s, pic, 0);