mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
2a8a860ae6
commit
6a08955c10
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user