Commit b4434475 authored by Clément Bœsch's avatar Clément Bœsch

Fix various uninitialized variable warnings

parent 58fd70b0
...@@ -1740,7 +1740,7 @@ static int video_thread(void *arg) ...@@ -1740,7 +1740,7 @@ static int video_thread(void *arg)
{ {
VideoState *is = arg; VideoState *is = arg;
AVFrame *frame= avcodec_alloc_frame(); AVFrame *frame= avcodec_alloc_frame();
int64_t pts_int, pos; int64_t pts_int = AV_NOPTS_VALUE, pos = -1;
double pts; double pts;
int ret; int ret;
......
...@@ -326,6 +326,8 @@ static int iff_read_packet(AVFormatContext *s, ...@@ -326,6 +326,8 @@ static int iff_read_packet(AVFormatContext *s,
buf = pkt->data; buf = pkt->data;
bytestream_put_be16(&buf, 2); bytestream_put_be16(&buf, 2);
ret = avio_read(pb, buf, iff->body_size); ret = avio_read(pb, buf, iff->body_size);
} else {
av_abort();
} }
if(iff->sent_bytes == 0) if(iff->sent_bytes == 0)
......
...@@ -1037,7 +1037,8 @@ static void matroska_fix_ass_packet(MatroskaDemuxContext *matroska, ...@@ -1037,7 +1037,8 @@ static void matroska_fix_ass_packet(MatroskaDemuxContext *matroska,
char *line, *layer, *ptr = pkt->data, *end = ptr+pkt->size; char *line, *layer, *ptr = pkt->data, *end = ptr+pkt->size;
for (; *ptr!=',' && ptr<end-1; ptr++); for (; *ptr!=',' && ptr<end-1; ptr++);
if (*ptr == ',') if (*ptr == ',')
layer = ++ptr; ptr++;
layer = ptr;
for (; *ptr!=',' && ptr<end-1; ptr++); for (; *ptr!=',' && ptr<end-1; ptr++);
if (*ptr == ',') { if (*ptr == ',') {
int64_t end_pts = pkt->pts + display_duration; int64_t end_pts = pkt->pts + display_duration;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment