[FFmpeg-devel] [PATCH] dump: show audio service type

Nicolas George george at nsup.org
Mon Mar 9 19:42:27 CET 2015

L'octidi 18 ventôse, an CCXXIII, Thomas Volkert a écrit :
> We could add "const char *av_get_audio_service_name(enum AVAudioServiceType
> type)" to avutil.h and use this function both in avformat and avfilter.

In the short term, that would probably be the best (although I would
slightly prefer if the function name was based on the full DeCamelCased name
of the type, i.e. av_get_audio_service_type_name(), but that is not very

For the longer term, I have started to try a more generic approach, but
before wasting time on something that can not work, I would like to know if
the following works on all supported platforms, including as shared library
with a crappy linker:


extern struct Foo foo_constants;


struct Foo foo_constants;


AVOption dummy = { .default_val = {.str=&foo_constants} };

In other words: initializing a pointer field in a structure with the address
of an object in another library.

If someone knows, especially if someone knows it does not work, that would
be very useful.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150309/0a030a6a/attachment.asc>

More information about the ffmpeg-devel mailing list