This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/webmdashenc: Use AVCodecDescriptors for codec names
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.3
Andreas Rheinhardt
5 years ago
parent
cbea58b2b3
commit
1719c7f5db
1 changed files
with
1 additions
and
11 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-11
libavformat/webmdashenc.c
+ 1
- 11
libavformat/webmdashenc.c
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save