Mercurial > mplayer.hg
diff libmpcodecs/vd_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 | 86b142e95253 |
| children | af91c1e34603 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Mon Sep 08 12:36:38 2008 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Mon Sep 08 17:02:32 2008 +0000 @@ -401,7 +401,7 @@ } if(sh->bih) - avctx->bits_per_sample= sh->bih->biBitCount; + avctx->bits_per_coded_sample= sh->bih->biBitCount; if(lavc_param_threads > 1) avcodec_thread_init(avctx, lavc_param_threads);
