ref: ad7fba114a0fabd5951274d8bc2f67c7b61dc959
parent: 9b440b0772b355b601858ad2c3a8f8432f17fde9
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Dec 12 20:41:54 EST 2020
ebml: fix codec name: mpeg4 → h264
--- a/ebml.c
+++ b/ebml.c
@@ -142,6 +142,9 @@
}else if(e->tracktype == 2){
if(strcmp(e->codec.name, "A_MPEG/L3") == 0)
return "mp3";
+ }else if(e->tracktype == 1){
+ if(strcmp(e->codec.name, "V_MPEG4/ISO/AVC") == 0)
+ return "h264";
}
n = snprint(t, sizeof(t), "%s", e->codec.name+2);
@@ -166,7 +169,7 @@
e->fmt = FmtVp09;
else if(strcmp(c, "vp8") == 0)
e->fmt = FmtVp08;
- else if(strcmp(e->codec.name, "V_MPEG4/ISO/AVC") == 0)
+ else if(strcmp(c, "h264") == 0)
e->fmt = FmtAvc1;
else
goto err;