[FFmpeg-devel] [PATCH v4 20/22] doc/examples: adding device_get_capabilities example

Diederick C. Niehorster dcnieho at gmail.com
Fri Mar 25 23:19:08 EET 2022


On Fri, Mar 25, 2022 at 6:26 PM Michael Niedermayer
<michael at niedermayer.cc> wrote:
>
> On Fri, Mar 25, 2022 at 03:10:39PM +0100, Diederick Niehorster wrote:
> > This example also shows use of get_device_list API.
> >
> > Also improve capability API doc in avdevice.h: now point to this example
> > instead of rough example code given in the header.
> >
> > Signed-off-by: Diederick Niehorster <dcnieho at gmail.com>
> > ---
> >  configure                              |   2 +
> >  doc/examples/.gitignore                |   1 +
> >  doc/examples/Makefile                  |   1 +
> >  doc/examples/Makefile.example          |   1 +
> >  doc/examples/device_get_capabilities.c | 243 +++++++++++++++++++++++++
> >  libavdevice/avdevice.h                 |  33 +---
> >  6 files changed, 249 insertions(+), 32 deletions(-)
> >  create mode 100644 doc/examples/device_get_capabilities.c
>
> maybe i forgot something but this seems not building

It builds for me on MSVC. But searching these warnings and errors,
i've learned some new things about C i didn't know because i mostly
work in C++. I have locally fixed the -Wstrict-prototypes warnings by
adding void as function parameter, and the Werror=missing-prototypes
(hopefully) by declaring these internal functions static.

Will include in next version, awaiting more comments first.

Thanks!
Dee


More information about the ffmpeg-devel mailing list