summaryrefslogtreecommitdiff
path: root/libavcodec/opus.h
diff options
context:
space:
mode:
authorKieran Kunhya <kierank@obe.tv>2014-10-18 00:25:16 +0100
committerAnton Khirnov <anton@khirnov.net>2014-12-20 11:29:19 +0100
commit9cfa68c560bdec82d2d5ec079f9c5b0f9ca37af0 (patch)
tree6fbd13f5452daad0169f6d39548f4328a5ee5513 /libavcodec/opus.h
parent8ebf02f8f530240edf7e45f35f7647ef9dd44a58 (diff)
mpegts: add support for Opus
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/opus.h')
-rw-r--r--libavcodec/opus.h9
1 files changed, 9 insertions, 0 deletions
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,