diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-08-12 18:20:29 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-08-12 18:20:29 +0000 |
commit | 36b58e850dec536b7dce5f9358744025e84d6ef9 (patch) | |
tree | dee3cfcf92f33839f725bf9244066e8c1f56dd13 /libavcodec/mpegvideo.c | |
parent | bdb2e37c4aca0ee92b6b642ca76ddfd79c255553 (diff) | |
download | ffmpeg-36b58e850dec536b7dce5f9358744025e84d6ef9.tar.gz |
* 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
Originally committed as revision 2123 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 91b46b2b68..b84875f43e 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -540,6 +540,8 @@ int MPV_encode_init(AVCodecContext *avctx) 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 @@ static void select_input_picture(MpegEncContext *s){ 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); |