[FFmpeg-devel] [PATCH 1/2] Trivial: j2kenc: fix compiler warning

Dominique Leuenberger dominique at leuenberger.net
Sat Nov 12 20:35:33 CET 2011


---
 libavcodec/j2kenc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 50b2b21..58789c9 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -869,7 +869,8 @@ static int encode_tile(J2kEncoderContext *s, J2kTile *tile, int tileno)
                                 int *ptr = t1.data[y-yy0];
                                 for (x = xx0; x < xx1; x++){
                                     *ptr = (comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y + x]);
-                                    *ptr++ = (int64_t)*ptr * (int64_t)(8192 * 8192 / band->stepsize) >> 13 - NMSEDEC_FRACBITS;
+                                    *ptr = (int64_t)*ptr * (int64_t)(8192 * 8192 / band->stepsize) >> 13 - NMSEDEC_FRACBITS;
+                                    *ptr++;
                                 }
                             }
                         }
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list