Mercurial > mplayer.hg
changeset 32767:414aaa8b9357
Use av_get_bits_per_sample_fmt instead of deprecated
av_get_bits_per_sample_format
author | reimar |
---|---|
date | Sat, 05 Feb 2011 13:58:36 +0000 |
parents | f6c832aedcb1 |
children | 3544ba7244bf |
files | libmpcodecs/ad_ffmpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,