[FFmpeg-devel] [PATCH 2/3] avfilter/vf_vidstabdetect: Avoid double AVERRORS
Michael Niedermayer
michael at niedermayer.cc
Mon Oct 2 18:31:02 EEST 2023
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
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 a2c6d895037..641040008a6 100644
--- a/libavfilter/vf_vidstabdetect.c
+++ b/libavfilter/vf_vidstabdetect.c
@@ -167,7 +167,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);
--
2.17.1
More information about the ffmpeg-devel
mailing list