freebsd-ports/multimedia/tovid/files/patch-src__tovid
Jeremy Messenger b6fd6cb979 Update tovid to 0.30_2, the _2 is because of the patches included from the
website.

PR:		ports/113105
Submitted by:	edwin
2007-06-01 03:25:21 +00:00

13 lines
714 B
Text

--- src/tovid.orig Sun May 27 21:50:36 2007
+++ src/tovid Sun May 27 21:50:55 2007
@@ -1930,8 +1930,8 @@
# ******************************************************************************
if ! $FAKE; then
- AUDIO_SIZE=$(du -c -b "$AUDIO_STREAM" | awk 'END{print $1}')
- VIDEO_SIZE=$(du -c -b "$VIDEO_STREAM" | awk 'END{print $1}')
+ AUDIO_SIZE=`ls -ALln "$OUT_PREFIX.$AUD_SUF" | awk '{ sum += $5 } END { print sum }'`
+ VIDEO_SIZE=`ls -ALln "$OUT_PREFIX.$VID_SUF" | awk '{ sum += $5 } END { print sum }'`
# Total size of streams so far (in MBytes)
STREAM_SIZE=$(expr \( $AUDIO_SIZE \+ $VIDEO_SIZE \) \/ 1000000)
# If it exceeds disc size, add '%d' field to allow mplex to split output