From 8c5a22daecb256652fe1adad575489d700a9e0c0 Mon Sep 17 00:00:00 2001 From: Daniel Genrich Date: Thu, 28 Feb 2008 21:57:24 +0000 Subject: Possible bugfix for weird FFMPEG files, I have no idea if that cases can even occur - Please take a look Peter. --- source/blender/imbuf/intern/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c index 4c7b5fec2c4..acf15c04ed9 100644 --- a/source/blender/imbuf/intern/util.c +++ b/source/blender/imbuf/intern/util.c @@ -289,8 +289,9 @@ static int isffmpeg (char *filename) { /* Find the first video stream */ videoStream=-1; for(i=0; inb_streams; i++) - if(get_codec_from_stream(pFormatCtx->streams[i]) - ->codec_type==CODEC_TYPE_VIDEO) + if(pFormatCtx->streams[i] && + get_codec_from_stream(pFormatCtx->streams[i]) && + (get_codec_from_stream(pFormatCtx->streams[i])->codec_type==CODEC_TYPE_VIDEO)) { videoStream=i; break; -- cgit v1.2.3