summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad_mp3lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/ad_mp3lib.c')
-rw-r--r--libmpcodecs/ad_mp3lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/ad_mp3lib.c b/libmpcodecs/ad_mp3lib.c
index 2b4f8c96a2..c5716ef317 100644
--- a/libmpcodecs/ad_mp3lib.c
+++ b/libmpcodecs/ad_mp3lib.c
@@ -50,6 +50,7 @@ static int init(sh_audio_t *sh)
sh->a_buffer_len=MP3_DecodeFrame(sh->a_buffer,-1);
if(!sh->a_buffer_len) return 0; // unsupported layer/format
sh->channels=2; // hack
+ sh->samplesize=2;
sh->samplerate=MP3_samplerate;
sh->i_bps=MP3_bitrate*(1000/8);
MP3_PrintHeader();