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,
Thomas.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to