[FFmpeg-devel] [PATCH 11/13] avformat/rtmpproto: add more enhanced rtmp codecs

Timo Rothenpieler timo at rothenpieler.org
Tue May 21 12:02:20 EEST 2024


---
 libavformat/rtmpproto.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index bc3d9df7b9..7bbb6d5313 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -356,9 +356,16 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
 
         while(fourcc_data - rt->enhanced_codecs < fourcc_str_len) {
             unsigned char fourcc[5];
-            if (!strncmp(fourcc_data, "hvc1", 4) ||
+            if (!strncmp(fourcc_data, "avc1", 4) ||
+                !strncmp(fourcc_data, "hvc1", 4) ||
                 !strncmp(fourcc_data, "av01", 4) ||
-                !strncmp(fourcc_data, "vp09", 4)) {
+                !strncmp(fourcc_data, "vp09", 4) ||
+                !strncmp(fourcc_data, "mp4a", 4) ||
+                !strncmp(fourcc_data, "Opus", 4) ||
+                !strncmp(fourcc_data, "fLaC", 4) ||
+                !strncmp(fourcc_data, ".mp3", 4) ||
+                !strncmp(fourcc_data, "ac-3", 4) ||
+                !strncmp(fourcc_data, "ec-3", 4)) {
                     av_strlcpy(fourcc, fourcc_data, sizeof(fourcc));
                     ff_amf_write_string(&p, fourcc);
             } else {
-- 
2.43.2



More information about the ffmpeg-devel mailing list