Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Schlaile <peter@schlaile.de>2008-05-06 02:08:50 +0400
committerPeter Schlaile <peter@schlaile.de>2008-05-06 02:08:50 +0400
commit2b1797d07bfd4549b3c74a127aeb1fa8460dfb87 (patch)
tree49b9fbe7c16078b63ec991b41340bc80a2103302 /source/blender/imbuf
parent1989e757b0138488c7ee7adc7f2058d43a3f3397 (diff)
== FFMPEG ==
Fixes: [#10703] loading an .avi captured by dosbox causes a segfault We shouldn't try to close a codec, if we haven't managed to open one... :)
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index 4f2a1da5580..632a471ecd0 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -305,13 +305,11 @@ static int isffmpeg (char *filename) {
/* Find the decoder for the video stream */
pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
if(pCodec==NULL) {
- avcodec_close(pCodecCtx);
av_close_input_file(pFormatCtx);
return 0;
}
if(avcodec_open(pCodecCtx, pCodec)<0) {
- avcodec_close(pCodecCtx);
av_close_input_file(pFormatCtx);
return 0;
}