rendered paste bodyIndex: 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);