[FFmpeg-soc] [soc]: r5132 - als/alsdec.c
thilo.borgmann
subversion at mplayerhq.hu
Sat Aug 15 16:28:50 CEST 2009
Author: thilo.borgmann
Date: Sat Aug 15 16:28:50 2009
New Revision: 5132
Log:
Use av_get_bits_per_sample_format utility function.
Modified:
als/alsdec.c
Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c Sat Aug 15 16:18:18 2009 (r5131)
+++ als/alsdec.c Sat Aug 15 16:28:50 2009 (r5132)
@@ -896,8 +896,7 @@ static int decode_frame(AVCodecContext *
}
*data_size = ctx->cur_frame_length * sconf->channels
- * (avctx->sample_fmt == SAMPLE_FMT_S16 ?
- 2 : 4);
+ * (av_get_bits_per_sample_format(avctx->sample_fmt) >> 3);
bytes_read = (get_bits_count(&ctx->gb) + 7) >> 3;
More information about the FFmpeg-soc
mailing list