diff options
author | Lynne <dev@lynne.ee> | 2020-04-28 12:25:46 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2020-04-30 23:05:51 +0100 |
commit | 8296443a70f052a6f5c9a867d28b83a5eb7d304d (patch) | |
tree | dc89608a38d95e1c15b2a531a8bac196446a321c /libavformat/oggparseopus.c | |
parent | e983197cbc93420b67aa7e811be47d7278c2c8a2 (diff) | |
download | ffmpeg-8296443a70f052a6f5c9a867d28b83a5eb7d304d.tar.gz |
oggdec: add support for proper demuxing of chained Opus files and streams
Part of this patch is based on Paul B Mahol's patch from last year.
This also allows for single-stream parameter/codec changes.
Diffstat (limited to 'libavformat/oggparseopus.c')
-rw-r--r-- | libavformat/oggparseopus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index 56b53e74e8..36d691e9aa 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -59,6 +59,7 @@ static int opus_header(AVFormatContext *avf, int idx) priv->pre_skip = AV_RL16(packet + 10); st->codecpar->initial_padding = priv->pre_skip; + os->start_trimming = priv->pre_skip; /*orig_sample_rate = AV_RL32(packet + 12);*/ /*gain = AV_RL16(packet + 16);*/ /*channel_map = AV_RL8 (packet + 18);*/ |