[Ffmpeg-devel] Patch to allow use of already open files
Kenneth Aafløy
kenneth
Sat Jul 23 23:54:04 CEST 2005
l?rdag 23. juli 2005, 23:54, skrev Rich Felker:
> 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?
Are you saying AVStream->file_size should be ridded with?
Kenneth
More information about the ffmpeg-devel
mailing list