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
important).
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:
lavu/something.h:
extern struct Foo foo_constants;
lavu/something.c:
struct Foo foo_constants;
lavc/something.c:
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.
Regards,
--
Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
