Mercurial > libavformat.hg
changeset 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 | f0de744f87f9 |
children | fab79efcd476 |
files | nuv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);