[MPlayer-cvslog] r32854 - trunk/libmpcodecs/ad_ffmpeg.c

reimar subversion at mplayerhq.hu
Sat Feb 5 14:58:36 CET 2011


Author: reimar
Date: Sat Feb  5 14:58:36 2011
New Revision: 32854

Log:
Use av_get_bits_per_sample_fmt instead of deprecated
av_get_bits_per_sample_format

Modified:
   trunk/libmpcodecs/ad_ffmpeg.c

Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c	Sat Feb  5 14:55:48 2011	(r32853)
+++ trunk/libmpcodecs/ad_ffmpeg.c	Sat Feb  5 14:58:36 2011	(r32854)
@@ -242,7 +242,7 @@ static int decode_audio(sh_audio_t *sh_a
 	    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,


More information about the MPlayer-cvslog mailing list