Mercurial > mplayer.hg
changeset 8822:7cd6450b3a2a
Sanity checks.
author | filon |
---|---|
date | Mon, 06 Jan 2003 14:56:16 +0000 |
parents | 76ec79da7a5c |
children | 557d34fe438a |
files | libmpdemux/demux_rawdv.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_rawdv.c Mon Jan 06 14:54:36 2003 +0000 +++ b/libmpdemux/demux_rawdv.c Mon Jan 06 14:56:16 2003 +0000 @@ -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)))