You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
flvenc: kill a uninitialized variable warning.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -440,7 +440,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 = -1, 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);
|
||||||
@@ -539,6 +539,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
|
avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
|
||||||
avio_wb32(pb, data_size + 11);
|
avio_wb32(pb, data_size + 11);
|
||||||
} else {
|
} else {
|
||||||
|
av_assert1(flags>=0);
|
||||||
avio_w8(pb,flags);
|
avio_w8(pb,flags);
|
||||||
if (enc->codec_id == AV_CODEC_ID_VP6)
|
if (enc->codec_id == AV_CODEC_ID_VP6)
|
||||||
avio_w8(pb,0);
|
avio_w8(pb,0);
|
||||||
|
Reference in New Issue
Block a user