Commit 611aa65d authored by reimar's avatar reimar

Fix a possible use of an uninitialized pointer.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11857 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3f1cc55d
...@@ -73,7 +73,7 @@ static int vmd_read_header(AVFormatContext *s, ...@@ -73,7 +73,7 @@ static int vmd_read_header(AVFormatContext *s,
{ {
VmdDemuxContext *vmd = s->priv_data; VmdDemuxContext *vmd = s->priv_data;
ByteIOContext *pb = s->pb; ByteIOContext *pb = s->pb;
AVStream *st, *vst; AVStream *st = NULL, *vst;
unsigned int toc_offset; unsigned int toc_offset;
unsigned char *raw_frame_table; unsigned char *raw_frame_table;
int raw_frame_table_size; int raw_frame_table_size;
...@@ -181,6 +181,7 @@ static int vmd_read_header(AVFormatContext *s, ...@@ -181,6 +181,7 @@ static int vmd_read_header(AVFormatContext *s,
continue; continue;
switch(type) { switch(type) {
case 1: /* Audio Chunk */ case 1: /* Audio Chunk */
if (!st) break;
/* first audio chunk contains several audio buffers */ /* first audio chunk contains several audio buffers */
if(current_audio_pts){ if(current_audio_pts){
vmd->frame_table[total_frames].frame_offset = current_offset; vmd->frame_table[total_frames].frame_offset = current_offset;
......
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