Mercurial > libavformat.hg
diff nuv.c @ 1064:bd570485d419 libavformat
Avoid crash if there is a rtjpeg quant header but no video stream in file
author | reimar |
---|---|
date | Thu, 20 Apr 2006 10:38:15 +0000 |
parents | 3aeb079a7e74 |
children | 725b291bf94f |
line wrap: on
line diff
--- a/nuv.c Wed Apr 19 14:18:13 2006 +0000 +++ b/nuv.c Thu Apr 20 10:38:15 2006 +0000 @@ -65,7 +65,7 @@ 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);