mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_vidstabdetect: Avoid double AVERRORS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit bb04235d728a2b85d6cbe14dd60184faa932c855) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e08f712507
commit
77fbef0fdd
@ -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, sd->f, &localmotions) != VS_OK) {
|
||||
int ret = AVERROR(errno);
|
||||
|
Loading…
x
Reference in New Issue
Block a user