# HG changeset patch # User reimar # Date 1296914316 0 # Node ID 414aaa8b9357a1208c0d2c554a2ebeff1990ba4f # Parent f6c832aedcb1d4212da1522e59b45a81e38cc04c Use av_get_bits_per_sample_fmt instead of deprecated av_get_bits_per_sample_format diff -r f6c832aedcb1 -r 414aaa8b9357 libmpcodecs/ad_ffmpeg.c --- a/libmpcodecs/ad_ffmpeg.c Sat Feb 05 13:55:48 2011 +0000 +++ b/libmpcodecs/ad_ffmpeg.c Sat Feb 05 13:58:36 2011 +0000 @@ -242,7 +242,7 @@ sh_audio->ds->buffer_pos+=y-x; // put back data (HACK!) if(len2>0){ if (((AVCodecContext *)sh_audio->context)->channels >= 5) { - int samplesize = av_get_bits_per_sample_format(((AVCodecContext *) + int samplesize = av_get_bits_per_sample_fmt(((AVCodecContext *) sh_audio->context)->sample_fmt) / 8; reorder_channel_nch(buf, AF_CHANNEL_LAYOUT_LAVC_DEFAULT, AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT,