[FFmpeg-devel] [PATCH 05/10] avformat/nutenc: Create put_* functions by macro

Michael Niedermayer michael at niedermayer.cc
Sat May 9 02:12:37 EEST 2020


On Mon, May 04, 2020 at 08:22:45PM +0200, Andreas Rheinhardt wrote:
> It allows to add analogous functions using e.g. the bytestream API
> instead of using an AVIOContext.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavformat/nutenc.c | 49 ++++++++++++++++++++++++--------------------
>  1 file changed, 27 insertions(+), 22 deletions(-)

It certainly is possible to use macros to make the put functions work
with 2 unrelated APIs.
But pretty it is not, why do we need 2 APIs ?

thx

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

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200509/f6b40dcd/attachment.sig>


More information about the ffmpeg-devel mailing list