Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com> --- libavformat/webmdashenc.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 182a361eae..303cdd699b 100644 --- a/libavformat/webmdashenc.c +++ b/libavformat/webmdashenc.c @@ -61,17 +61,7 @@ typedef struct WebMDashMuxContext { static const char *get_codec_name(int codec_id) { - switch (codec_id) { - case AV_CODEC_ID_VP8: - return "vp8"; - case AV_CODEC_ID_VP9: - return "vp9"; - case AV_CODEC_ID_VORBIS: - return "vorbis"; - case AV_CODEC_ID_OPUS: - return "opus"; - } - return NULL; + return avcodec_descriptor_get(codec_id)->name; } static double get_duration(AVFormatContext *s) -- 2.20.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".