diff options
author | Kieran Kunhya <kierank@obe.tv> | 2014-10-18 00:25:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-26 22:29:07 +0100 |
commit | 74141f693ded2fbf75af56fff309d2db35183635 (patch) | |
tree | 8f531d7dba7aa00e505990eab6e980b67ed75c17 /libavcodec/opus.h | |
parent | 05da586fef865274d44da57f841068b5f17c812c (diff) | |
download | ffmpeg-74141f693ded2fbf75af56fff309d2db35183635.tar.gz |
avcodec: Add support for Opus in MPEG-TS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/opus.h')
-rw-r--r-- | libavcodec/opus.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/opus.h b/libavcodec/opus.h index 543d90c609..6b02b5515f 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, |