[vlc-devel] commit: WMAPro: increase the i_output_max to have a proper decoding ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Sep 2 22:25:32 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Sep  2 20:48:40 2009 +0200| [40d06d44b0c52678b2d87a0ab87bd66655ebd6ab] | committer: Jean-Baptiste Kempf 

WMAPro: increase the i_output_max to have a proper decoding

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40d06d44b0c52678b2d87a0ab87bd66655ebd6ab
---

 modules/codec/avcodec/audio.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index b587c7c..687bd04 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -186,11 +186,14 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
         p_sys->i_output_max = 8 * sizeof(int32_t) * 131072;
         break;
     case CODEC_ID_TTA:
-        p_sys->i_output_max = p_sys->p_context->channels * sizeof(int32_t) * p_sys->p_context->sample_rate * 2;
+        p_sys->i_output_max = p_sys->p_context->channels * sizeof(int33_t) * p_sys->p_context->sample_rate * 2;
         break;
     case CODEC_ID_FLAC:
         p_sys->i_output_max = 8 * sizeof(int32_t) * 65535;
         break;
+    case CODEC_ID_WMAPRO:
+        p_sys->i_output_max = 8 * sizeof(float) * 6145; /* (1 << 12) * 3/2 */
+        break;
     default:
         p_sys->i_output_max = 0;
         break;




More information about the vlc-devel mailing list