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.