$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}"