ref: c3241a31142f7e367c78965a9fbbc01fb557750d
parent: 7b98be7fa1d53ad1e1d2edb3a9e4f8ca432ff438
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Jan 16 07:40:12 EST 2021
add mp3 audio support
--- a/misc.c
+++ b/misc.c
@@ -13,6 +13,7 @@
[FmtH264] = "h264",
[FmtAAC] = "aac",
[FmtOpus] = "opus",
+ [FmtMp3] = "mp3",
};
int
--- a/stream.h
+++ b/stream.h
@@ -11,11 +11,12 @@
/* video */
FmtAV1 = 0,
- FmtVP9,
- FmtVP8,
FmtH264,
+ FmtVP8,
+ FmtVP9,
/* audio */
FmtAAC,
+ FmtMp3,
FmtOpus,
FmtVorbis,
};
--- a/stream_audio.c
+++ b/stream_audio.c
@@ -11,6 +11,7 @@
static char *progs[] = {
[FmtAAC] = "/bin/audio/aacdec",
+ [FmtMp3] = "/bin/audio/mp3dec",
[FmtOpus] = "/bin/audio/opusdec",
[FmtVorbis] = "/bin/audio/oggdec",
};