aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-30 05:20:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-30 05:20:51 +0200
commit5e363bb9b3d8d0f6a0945caccd242498c5a92287 (patch)
tree77394302941bc219ca6d3f8811260d271e781030
parentb3facc4af8110beabdcade75e8d753b511d0e8cf (diff)
downloadffmpeg-5e363bb9b3d8d0f6a0945caccd242498c5a92287.tar.gz
flvenc: kill a uninitialized variable warning.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/flvenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 3d331317ad..3b9377bc79 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -440,7 +440,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 = -1, flags_size;
// av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n",
// 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_wb32(pb, data_size + 11);
} else {
+ av_assert1(flags>=0);
avio_w8(pb,flags);
if (enc->codec_id == AV_CODEC_ID_VP6)
avio_w8(pb,0);