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

reimar subversion at mplayerhq.hu
Sat Mar 24 21:24:44 CET 2012


Author: reimar
Date: Sat Mar 24 21:24:44 2012
New Revision: 34831

Log:
AVCODEC_MAX_AUDIO_FRAME_SIZE seems to be based on
a single channel.
Multiply with the maximum number of supported channels,
this at least fixes playback of one TTA sample
(see FFmpeg trac issue #96).

Modified:
   trunk/libmpcodecs/ad_ffmpeg.c

Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c	Sat Mar 24 20:26:36 2012	(r34830)
+++ trunk/libmpcodecs/ad_ffmpeg.c	Sat Mar 24 21:24:44 2012	(r34831)
@@ -49,7 +49,7 @@ LIBAD_EXTERN(ffmpeg)
 
 static int preinit(sh_audio_t *sh)
 {
-  sh->audio_out_minsize=AVCODEC_MAX_AUDIO_FRAME_SIZE;
+  sh->audio_out_minsize=AF_NCH*AVCODEC_MAX_AUDIO_FRAME_SIZE;
   return 1;
 }
 


More information about the MPlayer-cvslog mailing list