mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
Add av_uninit macro to variable to avoid false positive warning:
libavformat/electronicarts.c: In function ‘ea_read_packet’: libavformat/electronicarts.c:447: warning: ‘num_samples’ may be used uninitialized in this function Originally committed as revision 17157 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1e4eb387d4
commit
b57ac115ae
@ -444,7 +444,7 @@ static int ea_read_packet(AVFormatContext *s,
|
||||
int packet_read = 0;
|
||||
unsigned int chunk_type, chunk_size;
|
||||
int key = 0;
|
||||
int num_samples;
|
||||
int av_uninit(num_samples);
|
||||
|
||||
while (!packet_read) {
|
||||
chunk_type = get_le32(pb);
|
||||
|
Loading…
Reference in New Issue
Block a user