Add av_uninit macro to variable to avoid false positive warning:
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
This commit is contained in:
parent
decae20f36
commit
f59f814874
@ -116,7 +116,7 @@ static void qtrle_encode_line(QtrleEncContext *s, AVFrame *p, int line, uint8_t
|
|||||||
unsigned int skipcount;
|
unsigned int skipcount;
|
||||||
/* This will be the number of consecutive equal pixels in the current
|
/* This will be the number of consecutive equal pixels in the current
|
||||||
* frame, starting from the ith one also */
|
* frame, starting from the ith one also */
|
||||||
unsigned int repeatcount;
|
unsigned int av_uninit(repeatcount);
|
||||||
|
|
||||||
/* The cost of the three different possibilities */
|
/* The cost of the three different possibilities */
|
||||||
int total_bulk_cost;
|
int total_bulk_cost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user