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/anim_movie.c
parent414e40c353cad08493e90585cd1261297c96570f (diff)
libavformat API usage: use avformat_close_input() instead of av_close_input_file()
Diffstat (limited to 'source/blender/imbuf/intern/anim_movie.c')
-rw-r--r--source/blender/imbuf/intern/anim_movie.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/imbuf/intern/anim_movie.c b/source/blender/imbuf/intern/anim_movie.c
index a62cb095b1c..b7bea0d96b5 100644
--- a/source/blender/imbuf/intern/anim_movie.c
+++ b/source/blender/imbuf/intern/anim_movie.c
@@ -486,7 +486,7 @@ static int startffmpeg(struct anim *anim)
}
if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return -1;
}
@@ -507,7 +507,7 @@ static int startffmpeg(struct anim *anim)
}
if (videoStream == -1) {
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return -1;
}
@@ -516,14 +516,14 @@ static int startffmpeg(struct anim *anim)
/* 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 -1;
}
pCodecCtx->workaround_bugs = 1;
if (avcodec_open2(pCodecCtx, pCodec, NULL) < 0) {
- av_close_input_file(pFormatCtx);
+ avformat_close_input(&pFormatCtx);
return -1;
}
@@ -575,7 +575,7 @@ static int startffmpeg(struct anim *anim)
fprintf(stderr,
"ffmpeg has changed alloc scheme ... ARGHHH!\n");
avcodec_close(anim->pCodecCtx);
- av_close_input_file(anim->pFormatCtx);
+ avformat_close_input(&anim->pFormatCtx);
av_free(anim->pFrameRGB);
av_free(anim->pFrameDeinterlaced);
av_free(anim->pFrame);
@@ -616,7 +616,7 @@ static int startffmpeg(struct anim *anim)
fprintf(stderr,
"Can't transform color space??? Bailing out...\n");
avcodec_close(anim->pCodecCtx);
- av_close_input_file(anim->pFormatCtx);
+ avformat_close_input(&anim->pFormatCtx);
av_free(anim->pFrameRGB);
av_free(anim->pFrameDeinterlaced);
av_free(anim->pFrame);
@@ -1142,7 +1142,7 @@ static void free_anim_ffmpeg(struct anim *anim)
if (anim->pCodecCtx) {
avcodec_close(anim->pCodecCtx);
- av_close_input_file(anim->pFormatCtx);
+ avformat_close_input(&anim->pFormatCtx);
av_free(anim->pFrameRGB);
av_free(anim->pFrame);