Browse Source

avi: properly fail if the dv demuxer is missing

CC: libav-stable@libav.org
tags/n2.1
Luca Barbato 11 years ago
parent
commit
1cac9accbd
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/avidec.c

+ 2
- 1
libavformat/avidec.c View File

@@ -490,7 +490,8 @@ static int avi_read_header(AVFormatContext *s)
avi->dv_demux = avpriv_dv_init_demux(s);
if (!avi->dv_demux)
goto fail;
}
} else
goto fail;
s->streams[0]->priv_data = ast;
avio_skip(pb, 3 * 4);
ast->scale = avio_rl32(pb);


Loading…
Cancel
Save