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

Submitted by Paul B Mahol on April 4, 2018, 2:09 p.m.

Details

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

Commit Message

Paul B Mahol April 4, 2018, 2:09 p.m.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavformat/vivo.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

compn April 6, 2018, 10:53 p.m.
On Wed,  4 Apr 2018 16:09:37 +0200, Paul B Mahol <onemda@gmail.com>
wrote:

> +    } 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;


wow great!

now there is only the other vivo video codec left and then this format
can finally be completed?

-compn

Patch hide | download patch | download mbox

diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index 6a88a09a01..1339a609b9 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;