diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-18 20:43:33 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-18 20:45:03 +0000 |
commit | 6557c46d91d417cbda7c21aac5e326f93f6e3b1b (patch) | |
tree | 2a32de808c8638db43d69bccdfecf5e8e7783d90 /libavcodec/pcm.c | |
parent | a6f4c41a7e7f6c0f47034654a40df47abf2726ea (diff) | |
download | ffmpeg-6557c46d91d417cbda7c21aac5e326f93f6e3b1b.tar.gz |
pcm: move i into for loop to avoid { } inside switch statement
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 9661ed5a14..334e443624 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -252,18 +252,17 @@ static av_cold int pcm_decode_init(AVCodecContext *avctx) dst += size / 8; \ } -#define DECODE_PLANAR(size, endian, src, dst, n, shift, offset) { \ - int i; \ +#define DECODE_PLANAR(size, endian, src, dst, n, shift, offset) \ n /= avctx->channels; \ for (c = 0; c < avctx->channels; c++) { \ + int i; \ dst = s->frame.extended_data[c]; \ for (i = n; i > 0; i--) { \ uint ## size ## _t v = bytestream_get_ ## endian(&src); \ AV_WN ## size ## A(dst, (v - offset) << shift); \ dst += size / 8; \ } \ - } \ -} + } static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |