diff options
author | Jean First <jeanfirst@gmail.com> | 2011-12-31 17:15:35 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-26 02:54:34 +0400 |
commit | 7fc73d9ab781f66b63f3bbe2f384f4f639ae78e9 (patch) | |
tree | 7d045da92a57dffc4ed4fa425c48bb006b4a6417 /libavformat/rmdec.c | |
parent | 4c41fc88df5c507e0f239b4c16f85573f7b49702 (diff) |
rmdec: fix compiler warning for uninitialized variables
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 08527207a4..3b476ff93c 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -658,7 +658,8 @@ static int rm_assemble_video_frame(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt, int len, int *pseq, int64_t *timestamp) { - int hdr, seq, pic_num, len2, pos; + int hdr; + int seq = 0, pic_num = 0, len2 = 0, pos = 0; //init to silcense compiler warning int type; hdr = avio_r8(pb); len--; @@ -874,7 +875,7 @@ ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) { RMDemuxContext *rm = s->priv_data; - AVStream *st; + AVStream *st = NULL; // init to silence compiler warning int i, len, res, seq = 1; int64_t timestamp, pos; int flags; |