projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
daa3c28
)
paf: avoid using expressions with sideeffects in AV_R*
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 4 Sep 2012 19:25:39 +0000
(21:25 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 4 Sep 2012 19:25:39 +0000
(21:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/paf.c
patch
|
blob
|
history
diff --git
a/libavcodec/paf.c
b/libavcodec/paf.c
index
722ab26
..
bd7298a
100644
(file)
--- 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++) {
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;
}
}
buf += PAF_SOUND_FRAME_SIZE;