shithub: riscv

Download patch

ref: e992808e49beb230edd9ae892244aac86ec34351
parent: 9e28bf1a630f97b4fc1a72392cddf5789b592847
author: cinap_lenrek <[email protected]>
date: Sun Feb 19 14:45:13 EST 2012

play: increase format snoop buffer for better mp3 stream detection

--- a/rc/bin/play
+++ b/rc/bin/play
@@ -23,7 +23,7 @@
 fn play1 {
 	if(~ $#* 0){
 		tmp=(/tmp/play.$pid.$#tmp.tmp $tmp)
-		dd -bs 1024 -count 1 >$tmp(1) >[2]/dev/null
+		dd -bs 8192 -count 1 >$tmp(1) >[2]/dev/null
 		cat $tmp(1) /fd/0 | play1 `{file -m $tmp(1)} xxx
 		cleanup
 	}