]> git.sesse.net Git - ffmpeg/commitdiff
Add av_uninit macro to variable to avoid false positive warning:
authorDiego Biurrun <diego@biurrun.de>
Wed, 11 Feb 2009 14:55:24 +0000 (14:55 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 11 Feb 2009 14:55:24 +0000 (14:55 +0000)
libavcodec/qtrleenc.c: In function ‘qtrle_encode_frame’:
libavcodec/qtrleenc.c:113: warning: ‘bulkcount’ may be used uninitialized in this function

Originally committed as revision 17155 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/qtrleenc.c

index d38720d23f19c48782c0b9ef6ccc07a91d7f544b..171ac25b48a742b9f7461b305bea32537a42c9cb 100644 (file)
@@ -116,7 +116,7 @@ static void qtrle_encode_line(QtrleEncContext *s, AVFrame *p, int line, uint8_t
     unsigned int skipcount;
     /* This will be the number of consecutive equal pixels in the current
      * frame, starting from the ith one also */
-    unsigned int repeatcount;
+    unsigned int av_uninit(repeatcount);
 
     /* The cost of the three different possibilities */
     int total_bulk_cost;