summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/patches/patch-ae
blob: 1314adc467ee6460f1be18162bd871b829832bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-ae,v 1.5 2009/01/08 17:21:36 wiz Exp $

--- scripts/lavtc.sh.orig	2008-05-05 16:28:44.000000000 +0200
+++ scripts/lavtc.sh
@@ -424,7 +424,7 @@ setDeinterlaceArgs ()
 	#
 	inputFile="${inFile}"
 	inputVideoCodec="lav"
-	if [[ ${videoIsInterlaced} == 0 || ${deinterlacer=none} == "none" ]] ; then
+	if [[ ${videoIsInterlaced} = 0 || ${deinterlacer=none} = "none" ]] ; then
 		deinterlacerText="No deinterlacing"
 		setFlipArgs
 	elif [ ${deinterlacer} = "smart" ] ; then
@@ -663,8 +663,8 @@ setVideoBW
 	log_info "encoding ${inFile}"
 	log_info "input video: ${videoWidth}x${videoHeight}"
 	log_info "input total length: ${totalFrames} frames (${videoSeconds} seconds)"
-	log_info "deinterlace type: ${deinterlacer} (input is " `if [[ ${videoIsInterlaced} == 0 ]] ; then echo -n "not " ; fi ` " interlaced)"
-	if [[ ${audioInChannels} == 0 ]] ; then
+	log_info "deinterlace type: ${deinterlacer} (input is " `if [[ ${videoIsInterlaced} = 0 ]] ; then echo -n "not " ; fi ` " interlaced)"
+	if [[ ${audioInChannels} = 0 ]] ; then
 		log_info "no audio on input"
 	else
 		log_info "input audio: ${audioInRate},${audioInBits},${audioInChannels}"
@@ -748,7 +748,7 @@ do
 		else
 			corrector="cat"
 		fi
-		if [ ${deinterlacer} == "kineco" ] ; then
+		if [ ${deinterlacer} = "kineco" ] ; then
 			deinterlaceCmd="yuvkineco -F 1 "
 		else
 			deinterlaceCmd="yuvdenoise -I -v 0 "
@@ -757,10 +757,10 @@ do
 		log_debug "lav2yuv ${inFile} | ${corrector} | ${deinterlaceCmd} > ${fifo} &"
 		lav2yuv ${inFile} | ${corrector} | ${deinterlaceCmd} > ${fifo} &
 	fi
-	if [[ "${audioInChannels}" == 0 ]] ; then
+	if [[ "${audioInChannels}" = 0 ]] ; then
 		inputAudioCodec=",null"
 		outputAudioCodec=",null"
-	elif [[ ${pass} == 2 ]] ; then
+	elif [[ ${pass} = 2 ]] ; then
 		inputAudioCodec=",lav"
 	fi
 	inputCodecArgs="-x ${inputVideoCodec}${inputAudioCodec}"