Mercurial > mplayer.hg
changeset 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 | 6b1b5a34a94e |
children | 1088768591a5 |
files | libmpcodecs/ad_ffmpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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; }