OSDN Git Service

qtrleenc: fix uninitialized variable warnings
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Feb 2012 19:11:33 +0000 (20:11 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Feb 2012 19:11:33 +0000 (20:11 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qtrleenc.c

index 9aa2edb..da520bc 100644 (file)
@@ -120,13 +120,13 @@ static void qtrle_encode_line(QtrleEncContext *s, AVFrame *p, int line, uint8_t
     signed char rlecode;
 
     /* We will use it to compute the best bulk copy sequence */
-    unsigned int bulkcount;
+    unsigned int av_uninit(bulkcount);
     /* This will be the number of pixels equal to the preivous frame one's
      * starting from the ith pixel */
     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;