mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
alsdec: cosmetics after previous commit
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ae27b70b9d
commit
fb3f28ee28
@ -1480,14 +1480,14 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// transform decoded frame into output format
|
// transform decoded frame into output format
|
||||||
#define INTERLEAVE_OUTPUT(bps) \
|
#define INTERLEAVE_OUTPUT(bps) \
|
||||||
{ \
|
{ \
|
||||||
int##bps##_t *dest = (int##bps##_t*)ctx->frame.data[0]; \
|
int##bps##_t *dest = (int##bps##_t*)ctx->frame.data[0]; \
|
||||||
shift = bps - ctx->avctx->bits_per_raw_sample; \
|
shift = bps - ctx->avctx->bits_per_raw_sample; \
|
||||||
if (!sconf->chan_sort) { \
|
if (!sconf->chan_sort) { \
|
||||||
for (sample = 0; sample < ctx->cur_frame_length; sample++) \
|
for (sample = 0; sample < ctx->cur_frame_length; sample++) \
|
||||||
for (c = 0; c < avctx->channels; c++) \
|
for (c = 0; c < avctx->channels; c++) \
|
||||||
*dest++ = ctx->raw_samples[c][sample] << shift; \
|
*dest++ = ctx->raw_samples[c][sample] << shift; \
|
||||||
} else { \
|
} else { \
|
||||||
for (sample = 0; sample < ctx->cur_frame_length; sample++) \
|
for (sample = 0; sample < ctx->cur_frame_length; sample++) \
|
||||||
for (c = 0; c < avctx->channels; c++) \
|
for (c = 0; c < avctx->channels; c++) \
|
||||||
|
Loading…
Reference in New Issue
Block a user