[FFmpeg-cvslog] qsort: add some forgotten ()

Michael Niedermayer git at videolan.org
Mon Jun 18 19:07:26 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 18 18:39:17 2012 +0200| [88f87ebaa38986be1f6355efe471a27d4ef9c6f5] | committer: Michael Niedermayer

qsort: add some forgotten ()

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

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

 libavutil/qsort.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/qsort.h b/libavutil/qsort.h
index ca66c5f..0b352cf 100644
--- a/libavutil/qsort.h
+++ b/libavutil/qsort.h
@@ -25,7 +25,7 @@
     void *stack[64][2];\
     int sp= 1;\
     stack[0][0] = p;\
-    stack[0][1] = p+num-1;\
+    stack[0][1] = (p)+(num)-1;\
     while(sp){\
         type *start= stack[--sp][0];\
         type *end  = stack[  sp][1];\



More information about the ffmpeg-cvslog mailing list