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:
authorAnton Khirnov <anton@khirnov.net>2014-01-16 18:40:37 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-28 12:20:22 +0400
commitf99e581ae13c2c563f66cb0c31d3dfceeec21af7 (patch)
tree8309cd550b5b1fba428879b31c12411b91c4caaf /source/blender/imbuf/intern/indexer.c
parent414e40c353cad08493e90585cd1261297c96570f (diff)
libavformat API usage: use avformat_close_input() instead of av_close_input_file()
Diffstat (limited to 'source/blender/imbuf/intern/indexer.c')
-rw-r--r--source/blender/imbuf/intern/indexer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c
index 807601b4ee0..a3cb4048779 100644
--- a/source/blender/imbuf/intern/indexer.c
+++ b/source/blender/imbuf/intern/indexer.c
@@ -747,7 +747,7 @@ static IndexBuildContext *index_ffmpeg_create_context(struct anim *anim, IMB_Tim
}
if (avformat_find_stream_info(context->iFormatCtx, NULL) < 0) {
- av_close_input_file(context->iFormatCtx);
+ avformat_close_input(&context->iFormatCtx);
MEM_freeN(context);
return NULL;
}
@@ -767,7 +767,7 @@ static IndexBuildContext *index_ffmpeg_create_context(struct anim *anim, IMB_Tim
}
if (context->videoStream == -1) {
- av_close_input_file(context->iFormatCtx);
+ avformat_close_input(&context->iFormatCtx);
MEM_freeN(context);
return NULL;
}
@@ -778,7 +778,7 @@ static IndexBuildContext *index_ffmpeg_create_context(struct anim *anim, IMB_Tim
context->iCodec = avcodec_find_decoder(context->iCodecCtx->codec_id);
if (context->iCodec == NULL) {
- av_close_input_file(context->iFormatCtx);
+ avformat_close_input(&context->iFormatCtx);
MEM_freeN(context);
return NULL;
}
@@ -786,7 +786,7 @@ static IndexBuildContext *index_ffmpeg_create_context(struct anim *anim, IMB_Tim
context->iCodecCtx->workaround_bugs = 1;
if (avcodec_open2(context->iCodecCtx, context->iCodec, NULL) < 0) {
- av_close_input_file(context->iFormatCtx);
+ avformat_close_input(&context->iFormatCtx);
MEM_freeN(context);
return NULL;
}