diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2008-02-29 00:57:24 +0300 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2008-02-29 00:57:24 +0300 |
commit | 8c5a22daecb256652fe1adad575489d700a9e0c0 (patch) | |
tree | 91bb7f24c303bb8cba137e51fd2565ec73ffec5f /source/blender/imbuf | |
parent | a2ce30a90845750589239dc8862d089220342893 (diff) |
Possible bugfix for weird FFMPEG files, I have no idea if that cases can even occur - Please take a look Peter.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; i<pFormatCtx->nb_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; |