From df5fbeb013e70f14090cec1998a5f923d6713a1d Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 30 May 2004 19:24:17 +0000 Subject: merge ffmpeg to fix compiler warnings CVS patchset: 6612 CVS date: 2004/05/30 19:24:17 --- src/libffmpeg/libavcodec/mpeg12.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/libffmpeg/libavcodec/mpeg12.c') diff --git a/src/libffmpeg/libavcodec/mpeg12.c b/src/libffmpeg/libavcodec/mpeg12.c index 20ca493f2..9e57398ef 100644 --- a/src/libffmpeg/libavcodec/mpeg12.c +++ b/src/libffmpeg/libavcodec/mpeg12.c @@ -36,7 +36,7 @@ /* if xine's MPEG encoder is enabled, enable the encoding features in * this particular module */ -#ifdef XINE_MPEG_ENCODER +#if defined(XINE_MPEG_ENCODER) && !defined(CONFIG_ENCODERS) #define CONFIG_ENCODERS #endif @@ -2567,12 +2567,10 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx, s->chroma_intra_matrix[j] = v; } #ifdef DEBUG -/* dprintf("intra matrix present\n"); for(i=0;i<64;i++) dprintf(" %d", s->intra_matrix[s->dsp.idct_permutation[i]); printf("\n"); -*/ #endif } else { for(i=0;i<64;i++) { @@ -2594,12 +2592,10 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx, s->chroma_inter_matrix[j] = v; } #ifdef DEBUG -/* dprintf("non intra matrix present\n"); for(i=0;i<64;i++) dprintf(" %d", s->inter_matrix[s->dsp.idct_permutation[i]); printf("\n"); -*/ #endif } else { for(i=0;i<64;i++) { @@ -2802,8 +2798,6 @@ static int mpeg_decode_frame(AVCodecContext *avctx, MpegEncContext *s2 = &s->mpeg_enc_ctx; dprintf("fill_buffer\n"); - *data_size = 0; - /* special case for last picture */ if (buf_size == 0 && s2->low_delay==0 && s2->next_picture_ptr) { *picture= *(AVFrame*)s2->next_picture_ptr; -- cgit v1.2.3