[FFmpeg-devel] [PATCH] Introduce avio_dump_contents() and use it in lavd/lavfi.c

Michael Niedermayer michaelni at gmx.at
Fri Jul 18 15:15:05 CEST 2014


On Thu, Jul 17, 2014 at 11:37:03PM +0300, Andrey Utkin wrote:
> This is a replacement for previously proposed API
> av_bprint_fd_contents().
> Side-effect: lavfi input device now accepts any URL as "graph_file"
> option value.
> ---
>  libavdevice/lavfi.c   | 30 +++++++++++++++---------------
>  libavformat/avio.h    |  8 ++++++++
>  libavformat/aviobuf.c | 16 ++++++++++++++++
>  3 files changed, 39 insertions(+), 15 deletions(-)

needs minor bump for avformat and APIChanges update
also should be split in 2 patches, one for adding the API and one
for extending what graph_file can be used with
    

[...]
> @@ -500,4 +501,11 @@ int     avio_pause(AVIOContext *h, int pause);
>  int64_t avio_seek_time(AVIOContext *h, int stream_index,
>                         int64_t timestamp, int flags);
>  
> +/**
> + * Read contents of h into print buffer up to EOF.
> + *
> + * @return 0 for success, error code otherwise
> + */
> +int avio_dump_contents(AVIOContext *h, AVBPrint *pb);

not sure this is a good name, i think bprint should be in there
somewhere, maybe nicolas has an idea/suggestion

[..]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140718/96fb4822/attachment.asc>


More information about the ffmpeg-devel mailing list