[FFmpeg-cvslog] paf: avoid using expressions with sideeffects in AV_R*

Michael Niedermayer git at videolan.org
Tue Sep 4 21:46:01 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep  4 21:25:39 2012 +0200| [8c6d651fc30c8b3a7d9e1c60497037474656f7f1] | committer: Michael Niedermayer

paf: avoid using expressions with sideeffects in AV_R*

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c6d651fc30c8b3a7d9e1c60497037474656f7f1
---

 libavcodec/paf.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list