[FFmpeg-cvslog] avformat/rtmpproto: add more enhanced rtmp codecs

Timo Rothenpieler git at videolan.org
Fri Dec 27 21:25:53 EET 2024


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sat May 18 23:31:52 2024 +0200| [f8dc4d94fde9da07b3d9a0c9f05709b5092393ac] | committer: Timo Rothenpieler

avformat/rtmpproto: add more enhanced rtmp codecs

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8dc4d94fde9da07b3d9a0c9f05709b5092393ac
---

 libavformat/rtmpproto.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index b3b1eedacb..bb974390d3 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -356,8 +356,15 @@ 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, "ac-3", 4) ||
                 !strncmp(fourcc_data, "av01", 4) ||
+                !strncmp(fourcc_data, "avc1", 4) ||
+                !strncmp(fourcc_data, "ec-3", 4) ||
+                !strncmp(fourcc_data, "fLaC", 4) ||
+                !strncmp(fourcc_data, "hvc1", 4) ||
+                !strncmp(fourcc_data, ".mp3", 4) ||
+                !strncmp(fourcc_data, "mp4a", 4) ||
+                !strncmp(fourcc_data, "Opus", 4) ||
                 !strncmp(fourcc_data, "vp09", 4)) {
                     av_strlcpy(fourcc, fourcc_data, sizeof(fourcc));
                     ff_amf_write_string(&p, fourcc);



More information about the ffmpeg-cvslog mailing list