From 9cfa68c560bdec82d2d5ec079f9c5b0f9ca37af0 Mon Sep 17 00:00:00 2001 From: Kieran Kunhya Date: Sat, 18 Oct 2014 00:25:16 +0100 Subject: mpegts: add support for Opus Signed-off-by: Anton Khirnov --- libavcodec/opus.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavcodec/opus.h') diff --git a/libavcodec/opus.h b/libavcodec/opus.h index c2fac063bc..94993d623e 100644 --- a/libavcodec/opus.h +++ b/libavcodec/opus.h @@ -61,6 +61,15 @@ #define ROUND_MUL16(a,b) ((MUL16(a, b) + 16384) >> 15) #define opus_ilog(i) (av_log2(i) + !!(i)) +#define OPUS_TS_HEADER 0x7FE0 // 0x3ff (11 bits) +#define OPUS_TS_MASK 0xFFE0 // top 11 bits + +static const uint8_t opus_default_extradata[30] = { + 'O', 'p', 'u', 's', 'H', 'e', 'a', 'd', + 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +}; + enum OpusMode { OPUS_MODE_SILK, OPUS_MODE_HYBRID, -- cgit v1.2.3