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/util.c
parent414e40c353cad08493e90585cd1261297c96570f (diff)
libavformat API usage: use avformat_close_input() instead of av_close_input_file()
Diffstat (limited to 'source/blender/imbuf/intern/util.c')
-rw-r--r--source/blender/imbuf/intern/util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index 9d1ff79960c..125979c668e 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -353,7 +353,7 @@ static int isffmpeg(const char *filename)
if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
if (UTIL_DEBUG) fprintf(stderr, "isffmpeg: avformat_find_stream_info failed\n");
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return 0;
}
@@ -372,7 +372,7 @@ static int isffmpeg(const char *filename)
}
if (videoStream == -1) {
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return 0;
}
@@ -381,17 +381,17 @@ static int isffmpeg(const char *filename)
/* Find the decoder for the video stream */
pCodec = avcodec_find_decoder(pCodecCtx->codec_id);
if (pCodec == NULL) {
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return 0;
}
if (avcodec_open2(pCodecCtx, pCodec, NULL) < 0) {
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return 0;
}
avcodec_close(pCodecCtx);
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return 1;
}