1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 14:56:55 +00:00

ildetect: add ILDETECT_FORCE_RUN (if interlacing could not be decided, assume yadif).

This commit is contained in:
Rudolf Polzer 2013-12-18 10:56:33 +01:00
parent 94369170b8
commit 761a013736

View File

@ -16,6 +16,7 @@ esac
: ${ILDETECT_DRY_RUN:=}
: ${ILDETECT_QUIET:=}
: ${ILDETECT_RUN_INTERLACED_ONLY:=}
: ${ILDETECT_FORCE_RUN:=}
: ${MAKE:=make}
# exit status:
@ -76,7 +77,12 @@ case "$out" in
exit 2
;;
*"probably: "*)
exit 8
[ -n "$ILDETECT_FORCE_RUN" ] || exit 8
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" -vf-pre yadif
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
exit 0
;;
*)
exit 16