diff mbox series

[FFmpeg-devel,2/2] lavf/mpeg: Add G.711 A law support

Message ID 20230318113554.3775362-2-mypopydev@gmail.com
State Accepted
Commit a53bb071fee72bf297e788fdb26565ca1b5668de
Headers show
Series [FFmpeg-devel,1/2] lavfi/Makefile: fix make checkheaders fail | expand

Commit Message

Jun Zhao March 18, 2023, 11:35 a.m. UTC
Add G.711 A law support

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/mpeg.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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;