[FFmpeg-devel,3/4] avformat/vivo: add support for siren codec

Submitted by Paul B Mahol on May 16, 2019, 9:43 a.m.

Details

Message ID 20190516094307.27247-3-onemda@gmail.com
State New
Headers show

Commit Message

Paul B Mahol May 16, 2019, 9:43 a.m.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavformat/vivo.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index 1b1bfaffc7..730ca4bb99 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -232,6 +232,11 @@  static int vivo_read_header(AVFormatContext *s)
         ast->codecpar->bits_per_coded_sample = 8;
         ast->codecpar->block_align = 24;
         ast->codecpar->bit_rate = 6400;
+    } else {
+        ast->codecpar->codec_id = AV_CODEC_ID_SIREN;
+        ast->codecpar->bits_per_coded_sample = 16;
+        ast->codecpar->block_align = 40;
+        ast->codecpar->bit_rate = 6400;
     }
 
     ast->start_time        = 0;