aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-10-02 16:09:31 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-12-29 21:36:03 +0100
commitbb04235d728a2b85d6cbe14dd60184faa932c855 (patch)
tree4a64177babda9259ea0f2220448851c9ae255f4c
parentbf1159774b94ffcf1049f1def23db5d7cf46a433 (diff)
downloadffmpeg-bb04235d728a2b85d6cbe14dd60184faa932c855.tar.gz
avfilter/vf_vidstabdetect: Avoid double AVERRORS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_vidstabdetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_vidstabdetect.c b/libavfilter/vf_vidstabdetect.c
index aa050afab9..1888e8e6cd 100644
--- a/libavfilter/vf_vidstabdetect.c
+++ b/libavfilter/vf_vidstabdetect.c
@@ -180,7 +180,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
if (vsMotionDetection(md, &localmotions, &frame) != VS_OK) {
av_log(ctx, AV_LOG_ERROR, "motion detection failed");
- return AVERROR(AVERROR_EXTERNAL);
+ return AVERROR_EXTERNAL;
} else {
if (vsWriteToFile(md, s->f, &localmotions) != VS_OK) {
int ret = AVERROR(errno);