summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudolf Polzer <divVerent@xonotic.org>2014-11-22 08:13:14 +0100
committerRudolf Polzer <divVerent@xonotic.org>2014-11-22 08:13:26 +0100
commit92316eb7406b27f4c1bd353b8f242c7ff28d64f5 (patch)
treef296e6d7b1a0ce61c5d12bad7fc2b40b5057a6d1
parent863a05025825bca41afe733db983d3eae5702d35 (diff)
downloadmpv-92316eb7406b27f4c1bd353b8f242c7ff28d64f5.tar.bz2
mpv-92316eb7406b27f4c1bd353b8f242c7ff28d64f5.tar.xz
TOOLS/idet.sh: Adjust for changes in FFmpeg.
Compatibility to older idet is preserved.
-rwxr-xr-xTOOLS/idet.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/TOOLS/idet.sh b/TOOLS/idet.sh
index 80c4b4ac5f..e9214ef844 100755
--- a/TOOLS/idet.sh
+++ b/TOOLS/idet.sh
@@ -35,11 +35,7 @@ judge()
bff=0
progressive=0
undetermined=0
- while IFS= read -r out; do
- tff1=${out##* TFF:}; tff1=${tff1%% *}
- bff1=${out##* BFF:}; bff1=${bff1%% *}
- progressive1=${out##* Progressive:}; progressive1=${progressive1%% *}
- undetermined1=${out##* Undetermined:}; undetermined1=${undetermined1%% *}
+ while read -r _ _ _ _ _ _ tff1 _ bff1 _ progressive1 _ undetermined1 _; do
case "$tff1$bff1$progressive1$undetermined1" in
*[!0-9]*)
printf >&2 'ERROR: Unrecognized idet output: %s\n' "$out"