changeset 37040:4764e4e58621

rawdv: check for dv_decoder_new failure.
author reimar
date Sun, 06 Apr 2014 18:42:45 +0000
parents 2e58ad9a3f9e
children 8aa4f25a4c17
files libmpdemux/demux_rawdv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rawdv.c	Sun Apr 06 18:37:42 2014 +0000
+++ b/libmpdemux/demux_rawdv.c	Sun Apr 06 18:42:45 2014 +0000
@@ -157,6 +157,8 @@
 
    //read params from this frame
    dv_decoder=dv_decoder_new(TRUE,TRUE,FALSE);
+   if (!dv_decoder)
+	   goto err_out;
    dv_decoder->quality=DV_QUALITY_BEST;
 
    if (dv_parse_header(dv_decoder, dv_frame) == -1)