summaryrefslogtreecommitdiffstats
path: root/libavcodec/paf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-04 21:25:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-04 21:25:39 +0200
commit8c6d651fc30c8b3a7d9e1c60497037474656f7f1 (patch)
treefbccb066155d490a2e57af4965c74f3573e29e33 /libavcodec/paf.c
parentdaa3c28895f5d0fd82659de30dd1d90c6dd6f010 (diff)
downloadffmpeg-streaming-8c6d651fc30c8b3a7d9e1c60497037474656f7f1.zip
ffmpeg-streaming-8c6d651fc30c8b3a7d9e1c60497037474656f7f1.tar.gz
paf: avoid using expressions with sideeffects in AV_R*
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/paf.c')
-rw-r--r--libavcodec/paf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/paf.c b/libavcodec/paf.c
index 722ab26..bd7298a 100644
--- a/libavcodec/paf.c
+++ b/libavcodec/paf.c
@@ -418,7 +418,8 @@ static int paf_aud_decode(AVCodecContext *avctx, void *data,
t = buf + 256 * sizeof(uint16_t);
for (j = 0; j < PAF_SOUND_SAMPLES; j++) {
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;
OpenPOWER on IntegriCloud