[MPlayer-cvslog] r20448 - trunk/libmpdemux/demux_rawdv.c

reynaldo subversion at mplayerhq.hu
Wed Oct 25 22:39:03 CEST 2006


Author: reynaldo
Date: Wed Oct 25 22:39:01 2006
New Revision: 20448

Modified:
   trunk/libmpdemux/demux_rawdv.c

Log:
add two missing checks - PATCH by Karolina Lindqvist AT kramnet-se

Modified: trunk/libmpdemux/demux_rawdv.c
==============================================================================
--- trunk/libmpdemux/demux_rawdv.c	(original)
+++ trunk/libmpdemux/demux_rawdv.c	Wed Oct 25 22:39:01 2006
@@ -146,10 +146,13 @@
    dv_decoder=dv_decoder_new(TRUE,TRUE,FALSE);
    dv_decoder->quality=DV_QUALITY_BEST;
 
-   dv_parse_header(dv_decoder, dv_frame);
+   if (dv_parse_header(dv_decoder, dv_frame) == -1)
+	   return NULL;
 
    // create a new video stream header
    sh_video = new_sh_video(demuxer, 0);
+   if (!sh_video)
+	   return NULL;
 
    // make sure the demuxer knows about the new video stream header
    // (even though new_sh_video() ought to take care of it)



More information about the MPlayer-cvslog mailing list