diff options
author | Jun Zhao <mypopydev@gmail.com> | 2023-03-07 07:36:19 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2023-03-25 22:14:09 +0800 |
commit | a53bb071fee72bf297e788fdb26565ca1b5668de (patch) | |
tree | 9b8c6d7a9b5cc85105f095b3f778c54aa3f34498 | |
parent | 9a23d8d894907dab4e8ae4a0818c6f983d3b64f2 (diff) | |
download | ffmpeg-a53bb071fee72bf297e788fdb26565ca1b5668de.tar.gz |
lavf/mpeg: Add G.711 A law support
Add G.711 A law support
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r-- | libavformat/mpeg.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |