ffmpeg-effect: keep case statement style consistent - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 525b42728e67c375d13da283e917ccd80941b716
(DIR) parent f20cb7036f8163367f3ec0842a1bb26758873554
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 21 Oct 2022 21:20:21 +0200
ffmpeg-effect: keep case statement style consistent
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M ffmpeg-effect | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/ffmpeg-effect b/ffmpeg-effect
@@ -16,10 +16,8 @@ is_image() {
mimetype="$(file -ib "$1")"
case "${mimetype}" in
image/*)
- return 0
- ;;
+ return 0;;
esac
-
return 1
}
@@ -102,16 +100,13 @@ process_filter() {
case "$1" in
wat)
replace_face "${mediadir}/wat.png" "$2" "$3"
- return 0
- ;;
+ return 0;;
smith)
replace_face "${mediadir}/smith.png" "$2" "$3"
- return 0
- ;;
+ return 0;;
zucc)
replace_face "${mediadir}/zucc.png" "$2" "$3"
- return 0
- ;;
+ return 0;;
esac
# extend duration if less than a second or image