Commit c4021e60 authored by reimar's avatar reimar

Avoid crash if there is a rtjpeg quant header but no video stream in file


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5305 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e83e1c02
......@@ -65,7 +65,7 @@ static int get_codec_data(ByteIOContext *pb, AVStream *vst,
subtype = get_byte(pb);
url_fskip(pb, 6);
size = PKTSIZE(get_le32(pb));
if (subtype == 'R') {
if (vst && subtype == 'R') {
vst->codec->extradata_size = size;
vst->codec->extradata = av_malloc(size);
get_buffer(pb, vst->codec->extradata, size);
......
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