aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-02-11 15:01:52 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-11 15:01:52 +0000
commitb57ac115ae683d44d73d9729eb17b10a10754ab9 (patch)
treedeb9e3c8f31f9645210b777d7ad533deb5d20f13
parent1e4eb387d4768089cfe8db0141ccc23089694fce (diff)
downloadffmpeg-b57ac115ae683d44d73d9729eb17b10a10754ab9.tar.gz
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
-rw-r--r--libavformat/electronicarts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index a7a48daaa9..fe19e70f73 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -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);