Commit 8c6d651f authored by Michael Niedermayer's avatar Michael Niedermayer

paf: avoid using expressions with sideeffects in AV_R*

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent daa3c288
...@@ -418,7 +418,8 @@ static int paf_aud_decode(AVCodecContext *avctx, void *data, ...@@ -418,7 +418,8 @@ static int paf_aud_decode(AVCodecContext *avctx, void *data,
t = buf + 256 * sizeof(uint16_t); t = buf + 256 * sizeof(uint16_t);
for (j = 0; j < PAF_SOUND_SAMPLES; j++) { for (j = 0; j < PAF_SOUND_SAMPLES; j++) {
for (k = 0; k < 2; k++) { for (k = 0; k < 2; k++) {
*output_samples++ = AV_RL16(buf + *t++ * 2); *output_samples++ = AV_RL16(buf + *t * 2);
t++;
} }
} }
buf += PAF_SOUND_FRAME_SIZE; buf += PAF_SOUND_FRAME_SIZE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment