Introduction
Introduction Statistics Contact Development Disclaimer Help
ffmpeg-effect: use simpler logic for determining input file type - annna - Annn…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit f20cb7036f8163367f3ec0842a1bb26758873554
parent 0dfb38734313976385a7e77abfc441c622e08554
Author: Anders Damsgaard <[email protected]>
Date: Fri, 21 Oct 2022 21:19:25 +0200
ffmpeg-effect: use simpler logic for determining input file type
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M ffmpeg-effect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ffmpeg-effect b/ffmpeg-effect
@@ -13,7 +13,7 @@ usage() {
}
is_image() {
- mimetype="$(file --mime-type "$1" | cut -d':' -f 2 | cut -c 2-)"
+ mimetype="$(file -ib "$1")"
case "${mimetype}" in
image/*)
return 0
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.