Unified · Split
| @@ -180,7 +180,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 179 unmodified lines | |||
| 180 | } | 180 | } |
| 181 | if (vsMotionDetection(md, &localmotions, &frame) != VS_OK) { | 181 | if (vsMotionDetection(md, &localmotions, &frame) != VS_OK) { |
| 182 | av_log(ctx, AV_LOG_ERROR, "motion detection failed"); | 182 | av_log(ctx, AV_LOG_ERROR, "motion detection failed"); |
| 183 | return AVERROR(AVERROR_EXTERNAL); | 183 | return AVERROR_EXTERNAL; |
| 184 | } else { | 184 | } else { |
| 185 | if (vsWriteToFile(md, s->f, &localmotions) != VS_OK) { | 185 | if (vsWriteToFile(md, s->f, &localmotions) != VS_OK) { |
| 186 | int ret = AVERROR(errno); | 186 | int ret = AVERROR(errno); |