blob: ac8afc0b94deec166c38ad461858e29c58ed0e56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff -ru mjpegtools-1.8.0-orig/scripts/lav2mpeg mjpegtools-1.8.0-fixed-lav2mpeg/scripts/lav2mpeg
--- mjpegtools-1.8.0-orig/scripts/lav2mpeg 2006-11-19 17:11:41.000000000 +0100
+++ mjpegtools-1.8.0-fixed-lav2mpeg/scripts/lav2mpeg 2006-11-19 17:22:21.000000000 +0100
@@ -267,7 +267,8 @@
# lavinfo should set up video_frames, video_width
# video_height, video_inter, video_norm, audio_chans
-eval $($LAVINFO $@ | grep "=") # grep for = to remove Warnings
+# Add backslashes to protect contained spaces
+eval $($LAVINFO $@ | grep "=" | sed -e 's: :\\ :g') # grep for = to remove Warnings
if [ "$video_frames" == "" ]; then
logIt "'lavinfo $@' died! exiting"
logIt " maybe you don't have lavinfo. or your input flags were wrong"
@@ -401,7 +402,7 @@
fi
fi
-if [ $video_inter -eq 1 ]; then
+if [[ ${video_inter/interlacing/} != ${video_inter} ]]; then
yuvdenoise_flags="$yuvdenoise_flags -F"
fi
|