[Ffmpeg-devel] Patch to allow use of already open files
Rich Felker
dalias
Sat Jul 23 23:54:41 CEST 2005
On Sat, Jul 23, 2005 at 08:01:56PM +0100, Andy Parkins wrote:
> > [...]
> >
> > > + h->is_streamed = 1;
> >
> > why?
>
> As I mentioned, I think that this is only useful for non-file file descriptors
> (otherwise why wouldn't you just use the file protocol), so you're probably
> using a non-file file descriptor like a pipe or a socket, so it seemed
> sensible to set this.
Try using lseek to seek 0 bytes from current position. If it returns
error, set is_streamed=1. Better?
Rich
More information about the ffmpeg-devel
mailing list