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

Thomas Volkert silvo at gmx.net
Sun Mar 8 12:29:56 CET 2015

On 03/08/2015 12:03 PM, Nicolas George wrote:
> L'octidi 18 ventôse, an CCXXIII, Clement Boesch a écrit :
>> Factorize it with ashowinfo instead of copying the code.
>> You can add a public helper returning the string.
> I strongly support the second option. All enums like that should have a
> corresponding string <-> enum utility.
> Actually, we may want to make this kind of string <-> enum mapping more
> standard, so they can be used in options parsing, but that is more work, so
> not necessary immediately.

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.

Best regards,

More information about the ffmpeg-devel mailing list