Fix various uninitialized variable warnings

This commit is contained in:
Clément Bœsch 2011-05-29 21:02:20 +02:00
parent 58fd70b04d
commit b443447536
3 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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;