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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20448 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reynaldo 2006-10-25 20:39:01 +00:00
parent 40272a755c
commit e2b9f14a02
1 changed files with 4 additions and 1 deletions

View File

@ -146,10 +146,13 @@ static demuxer_t* demux_open_rawdv(demuxer_t* demuxer)
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)