summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-08 17:02:32 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-08 17:02:32 +0000
commit923f67082e60afc96d9efd2b88f75d992834c8a6 (patch)
tree6dffb6b669c79ff11095ac6e23d607db1514cc79 /libmpcodecs/vd_ffmpeg.c
parentb128f3e558af20ac6e7bbfedaf1c47c5860ec53c (diff)
downloadmpv-923f67082e60afc96d9efd2b88f75d992834c8a6.tar.bz2
mpv-923f67082e60afc96d9efd2b88f75d992834c8a6.tar.xz
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(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27548 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index f50c5c69b6..da1350eee0 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -401,7 +401,7 @@ static int init(sh_video_t *sh){
}
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);