diff options
author | Benjamin Larsson <benjamin@southpole.se> | 2012-09-17 21:14:58 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-09-18 10:31:04 +0200 |
commit | 6a08955c104450dfc8f56aa9f552a4c08f8d8f7f (patch) | |
tree | a8d6145de16f17f086f0ee193a1fcb7b03b4016d /libavformat/flvenc.c | |
parent | 2a8a860ae65b0c1c955f148d8697cc30adc71cf3 (diff) | |
download | ffmpeg-6a08955c104450dfc8f56aa9f552a4c08f8d8f7f.tar.gz |
flvenc: silence bogus warning
The compiler fails to figure out that enc->codec_type can only
have 3 different values.
Thus when an if/else is encountered it triggers on the possibility
of the else case has not initialized the flags variable.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 57e7aac23e..839b9b0df4 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -421,7 +421,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) unsigned ts; int size = pkt->size; uint8_t *data = NULL; - int flags, flags_size; + int flags = 0, flags_size; // av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n", // enc->codec_type, timestamp, size); |