Mercurial > libavcodec.hg
diff mpeg12.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 | da0b3a50d209 |
children | 62ea3b7d00f0 |
line wrap: on
line diff
--- a/mpeg12.c Tue Aug 12 10:00:31 2003 +0000 +++ b/mpeg12.c Tue Aug 12 18:20:29 2003 +0000 @@ -2035,7 +2035,7 @@ Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; - if (!s1->mpeg_enc_ctx_allocated) + if (!s1->mpeg_enc_ctx_allocated || !s->current_picture_ptr) return 0; #ifdef HAVE_XVMC