diff libmpcodecs/ad_ffmpeg.c @ 34743:e48eefbb92d2

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).
author reimar
date Sat, 24 Mar 2012 20:24:44 +0000
parents e659a561af75
children 2b037cee0795
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Sat Mar 24 19:26:36 2012 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Sat Mar 24 20:24:44 2012 +0000
@@ -49,7 +49,7 @@
 
 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;
 }