[Ffmpeg-cvslog] CVS: ffmpeg/libavformat nuv.c,1.1,1.2

Reimar Döffinger CVS reimar
Thu Apr 20 12:38:17 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv10976

Modified Files:
	nuv.c 
Log Message:
Avoid crash if there is a rtjpeg quant header but no video stream in file


Index: nuv.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/nuv.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- nuv.c	27 Mar 2006 22:22:50 -0000	1.1
+++ nuv.c	20 Apr 2006 10:38:15 -0000	1.2
@@ -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);





More information about the ffmpeg-cvslog mailing list