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

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-25 15:19:41 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-10-25 15:28:51 +0400
commit0d96d44c4fa526582500718254ac9e19f984c6a5 (patch)
tree876c479daab80ee280565eec68cee82761e8e042 /libavfilter/vf_vidstabdetect.c
parenta63096953559ab40b09e125056d2a86bf6a354bb (diff)
avfilter: Read errno before av_log() as the callback from av_log() might affect errno
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_vidstabdetect.c')
-rw-r--r--libavfilter/vf_vidstabdetect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_vidstabdetect.c b/libavfilter/vf_vidstabdetect.c
index bf067afaf9..1df6f74f4e 100644
--- a/libavfilter/vf_vidstabdetect.c
+++ b/libavfilter/vf_vidstabdetect.c
@@ -176,8 +176,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return AVERROR(AVERROR_EXTERNAL);
} else {
if (vsWriteToFile(md, sd->f, &localmotions) != VS_OK) {
+ int ret = AVERROR(errno);
av_log(ctx, AV_LOG_ERROR, "cannot write to transform file");
- return AVERROR(errno);
+ return ret;
}
vs_vector_del(&localmotions);
}