[Mplayer-cvslog] CVS: main/libmpdemux demux_rawdv.c,1.3,1.4
Filip Kalinski CVS
filon at mplayerhq.hu
Mon Jan 6 15:56:24 CET 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv6145/libmpdemux
Modified Files:
demux_rawdv.c
Log Message:
Sanity checks.
Index: demux_rawdv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rawdv.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- demux_rawdv.c 8 Oct 2002 23:53:33 -0000 1.3
+++ demux_rawdv.c 6 Jan 2003 14:56:16 -0000 1.4
@@ -75,8 +75,14 @@
return 0;
td=dv_decoder_new(TRUE,TRUE,FALSE);
+ if (!td)
+ return 0;
+
td->quality=DV_QUALITY_BEST;
- dv_parse_header(td, tmp_buffer);
+ result=dv_parse_header(td, tmp_buffer);
+ if (result)
+ return 0;
+
if ((( td->num_dif_seqs==10) || (td->num_dif_seqs==12))
&& (td->width==720)
&& ((td->height==576) || (td->height==480)))
More information about the MPlayer-cvslog
mailing list