# HG changeset patch # User reimar # Date 1332620684 0 # Node ID e48eefbb92d2d4072a868864fc525f36172ced42 # Parent 6b1b5a34a94e11ffc1352e7e0a93cefa420be0b6 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). diff -r 6b1b5a34a94e -r e48eefbb92d2 libmpcodecs/ad_ffmpeg.c --- 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; }