mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
Sanity checks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8823 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -75,8 +75,14 @@ int rawdv_check_file(demuxer_t *demuxer)
|
||||
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)))
|
||||
|
||||
Reference in New Issue
Block a user