[FFmpeg-devel] [PATCH 1/6] lavf: add directory listing API

Lukasz Marek lukasz.m.luki2 at gmail.com
Fri Jul 11 18:15:13 CEST 2014


On 11 July 2014 14:01, wm4 <nfxjfg at googlemail.com> wrote:

> On Fri, 11 Jul 2014 03:03:53 +0200
> Lukasz Marek <lukasz.m.luki2 at gmail.com> wrote:
>
> > On 10.07.2014 01:36, Lukasz Marek wrote:
> > > On 08.07.2014 14:49, Lukasz Marek wrote:
> > >> On 7 July 2014 23:59, wm4 <nfxjfg at googlemail.com
> > >>     All symbols in public headers should have the AV prefix. (I guess
> > >> this
> > >>     is why you wanted to use void* as context at first?) I'm not sure
> how
> > >>     exactly to fix this, though.
> > >>
> > >> Yes, that's why I wanted void*.
> > >> I guess I can also try to integrate this with AVIOContext.
> > >>
> > >
> > > new patch attached.
>
> Probably ok. What happens if you try to read byte data from the
> AVIOContext?


avio_read returns AVERROR_EOF,
avio_seek return  AVERROR(EPIPE)
avio_write hangs

I added locally to avio_open_dir doxy:

" * @warning Context created this way cannot be used for I/O operations
other than avio_read_dir() and avio_close_dir()."


More information about the ffmpeg-devel mailing list