diff libmpcodecs/ad_ffmpeg.c @ 27516:3364aef9a988

Fix compilation after libavcodec major version 52 changes Some symbols were dropped or renamed, requiring corresponding changes in MPlayer. - Use AVCodecContext->bits_per_coded_sample instead of ->bits_per_sample. - Use AVCodecContext->trellis instead of ->flags&CODEC_FLAG_TRELLIS_QUANT. - Don't set AVCodecContext->rtp_mode (already marked unused before). - Use ff_eval2() instead of ff_eval().
author uau
date Mon, 08 Sep 2008 17:02:32 +0000
parents d3a0f537dbe8
children e65738d7dd3b
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Mon Sep 08 12:36:38 2008 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Mon Sep 08 17:02:32 2008 +0000
@@ -63,7 +63,7 @@
 	lavc_context->sample_rate = sh_audio->wf->nSamplesPerSec;
 	lavc_context->bit_rate = sh_audio->wf->nAvgBytesPerSec * 8;
 	lavc_context->block_align = sh_audio->wf->nBlockAlign;
-	lavc_context->bits_per_sample = sh_audio->wf->wBitsPerSample;
+	lavc_context->bits_per_coded_sample = sh_audio->wf->wBitsPerSample;
     }
     lavc_context->request_channels = audio_output_channels;
     lavc_context->codec_tag = sh_audio->format; //FOURCC