Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-05-29 23:02:20 +0400
committerClément Bœsch <ubitux@gmail.com>2011-06-02 12:36:56 +0400
commitb443447536116f2843097f26a693478c66dcbe02 (patch)
tree95ed7e22367a636315cddf1b5ab2d7310956520e
parent58fd70b04decdb7e5580c06b1be3bd573fabeeda (diff)
Fix various uninitialized variable warnings
-rw-r--r--ffplay.c2
-rw-r--r--libavformat/iff.c2
-rw-r--r--libavformat/matroskadec.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index ffe1c0f12d..74d1f10945 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1740,7 +1740,7 @@ static int video_thread(void *arg)
{
VideoState *is = arg;
AVFrame *frame= avcodec_alloc_frame();
- int64_t pts_int, pos;
+ int64_t pts_int = AV_NOPTS_VALUE, pos = -1;
double pts;
int ret;
diff --git a/libavformat/iff.c b/libavformat/iff.c
index 2dd1ef7553..a0a43742dd 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -326,6 +326,8 @@ static int iff_read_packet(AVFormatContext *s,
buf = pkt->data;
bytestream_put_be16(&buf, 2);
ret = avio_read(pb, buf, iff->body_size);
+ } else {
+ av_abort();
}
if(iff->sent_bytes == 0)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 569b95fbb2..031e89ac8d 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1037,7 +1037,8 @@ static void matroska_fix_ass_packet(MatroskaDemuxContext *matroska,
char *line, *layer, *ptr = pkt->data, *end = ptr+pkt->size;
for (; *ptr!=',' && ptr<end-1; ptr++);
if (*ptr == ',')
- layer = ++ptr;
+ ptr++;
+ layer = ptr;
for (; *ptr!=',' && ptr<end-1; ptr++);
if (*ptr == ',') {
int64_t end_pts = pkt->pts + display_duration;