Re: i/o redirect problem w/minimad

Rob Leslie <[email protected]> Tue, 28 Sep 2004 13:11:48 -0700
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
On Sep 28, 2004, at 12:06 PM, Emil Rojas wrote:
> If I run minimad like:
> minimad < x.mp2 > x.pcm
> it works fine, but if I run it like
> cat x.mp2 | minimad > x.pcm
>
> The state returns a zero size the minimad exits.
>
> Does anyone have any idea why this might happen?

It happens because mmap() cannot map a pipe into memory. minimad 
requires that stdin be a regular file.

-- 
Rob Leslie
[email protected]