All pastes #922563 Raw Edit

Jemand

public text v1 · immutable
#922563 ·published 2008-02-28 21:34 UTC
rendered paste body
Index: source/blender/imbuf/intern/util.c
===================================================================
--- source/blender/imbuf/intern/util.c  (Revision 13905)
+++ source/blender/imbuf/intern/util.c  (Arbeitskopie)
@@ -302,6 +302,11 @@
        }
 
        pCodecCtx = get_codec_from_stream(pFormatCtx->streams[videoStream]);
+
+       if(pCodecCtx==NULL) {
+               av_close_input_file(pFormatCtx);
+               return 0;
+       }
 
         /* Find the decoder for the video stream */
        pCodec=avcodec_find_decoder(pCodecCtx->codec_id);