Commit 6a08955c authored by Benjamin Larsson's avatar Benjamin Larsson Committed by Luca Barbato

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: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 2a8a860a
...@@ -421,7 +421,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -421,7 +421,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
unsigned ts; unsigned ts;
int size = pkt->size; int size = pkt->size;
uint8_t *data = NULL; 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", // av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n",
// enc->codec_type, timestamp, size); // enc->codec_type, timestamp, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment