[FFmpeg-cvslog] lavf/mpeg: Add G.711 A law support

Jun Zhao git at videolan.org
Sat Mar 25 16:16:56 EET 2023


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Tue Mar  7 07:36:19 2023 +0800| [a53bb071fee72bf297e788fdb26565ca1b5668de] | committer: Jun Zhao

lavf/mpeg: Add G.711 A law support

Add G.711 A law support

Signed-off-by: Jun Zhao <barryjzhao at tencent.com>

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

 libavformat/mpeg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 864b08d8f8..781c3162d6 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -549,6 +549,9 @@ redo:
     } else if (es_type == STREAM_TYPE_AUDIO_AC3) {
         codec_id = AV_CODEC_ID_AC3;
         type     = AVMEDIA_TYPE_AUDIO;
+    } else if (es_type == 0x90) {
+        codec_id = AV_CODEC_ID_PCM_ALAW;
+        type     = AVMEDIA_TYPE_AUDIO;
     } else if (m->imkh_cctv && es_type == 0x91) {
         codec_id = AV_CODEC_ID_PCM_MULAW;
         type     = AVMEDIA_TYPE_AUDIO;



More information about the ffmpeg-cvslog mailing list