avfilter/vf_vidstabdetect: Avoid double AVERRORS

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit bb04235d72)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/6.0
Michael Niedermayer 1 year ago
parent 96cc1dd4d3
commit 7a42e9d892
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavfilter/vf_vidstabdetect.c

@ -166,7 +166,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
} }
if (vsMotionDetection(md, &localmotions, &frame) != VS_OK) { if (vsMotionDetection(md, &localmotions, &frame) != VS_OK) {
av_log(ctx, AV_LOG_ERROR, "motion detection failed"); av_log(ctx, AV_LOG_ERROR, "motion detection failed");
return AVERROR(AVERROR_EXTERNAL); return AVERROR_EXTERNAL;
} else { } else {
if (vsWriteToFile(md, s->f, &localmotions) != VS_OK) { if (vsWriteToFile(md, s->f, &localmotions) != VS_OK) {
int ret = AVERROR(errno); int ret = AVERROR(errno);

Loading…
Cancel
Save