comparison 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
comparison
equal deleted inserted replaced
1401:f5a107782a66 1402:f662e9c86cf2
2033 static int slice_end(AVCodecContext *avctx, AVFrame *pict) 2033 static int slice_end(AVCodecContext *avctx, AVFrame *pict)
2034 { 2034 {
2035 Mpeg1Context *s1 = avctx->priv_data; 2035 Mpeg1Context *s1 = avctx->priv_data;
2036 MpegEncContext *s = &s1->mpeg_enc_ctx; 2036 MpegEncContext *s = &s1->mpeg_enc_ctx;
2037 2037
2038 if (!s1->mpeg_enc_ctx_allocated) 2038 if (!s1->mpeg_enc_ctx_allocated || !s->current_picture_ptr)
2039 return 0; 2039 return 0;
2040 2040
2041 #ifdef HAVE_XVMC 2041 #ifdef HAVE_XVMC
2042 if(s->avctx->xvmc_acceleration) 2042 if(s->avctx->xvmc_acceleration)
2043 XVMC_field_end(s); 2043 XVMC_field_end(s);