[FFmpeg-cvslog] avfilter/vf_vidstabdetect: Avoid double AVERRORS
Michael Niedermayer
git at videolan.org
Sun Apr 14 23:59:33 EEST 2024
ffmpeg | branch: release/3.4 | Michael Niedermayer <michael at niedermayer.cc> | Mon Oct 2 16:09:31 2023 +0200| [0b8a2e6c0c40252541db8e7918791601aa99414e] | committer: Michael Niedermayer
avfilter/vf_vidstabdetect: Avoid double AVERRORS
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit bb04235d728a2b85d6cbe14dd60184faa932c855)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b8a2e6c0c40252541db8e7918791601aa99414e
---
libavfilter/vf_vidstabdetect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_vidstabdetect.c b/libavfilter/vf_vidstabdetect.c
index 63a178a0c2..5e80e145d5 100644
--- a/libavfilter/vf_vidstabdetect.c
+++ b/libavfilter/vf_vidstabdetect.c
@@ -175,7 +175,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);
More information about the ffmpeg-cvslog
mailing list