summaryrefslogtreecommitdiffstats
path: root/audio/decode
diff options
context:
space:
mode:
Diffstat (limited to 'audio/decode')
-rw-r--r--audio/decode/ad_mpg123.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decode/ad_mpg123.c b/audio/decode/ad_mpg123.c
index 7b174aa0d6..ec4dc04485 100644
--- a/audio/decode/ad_mpg123.c
+++ b/audio/decode/ad_mpg123.c
@@ -160,7 +160,7 @@ static int set_format(struct dec_audio *da)
return MPG123_ERR;
}
mp_audio_set_format(&da->decoded, af);
- con->sample_size = channels * (af_fmt2bits(af) / 8);
+ con->sample_size = channels * af_fmt2bps(af);
con->new_format = 0;
}
return ret;