From be3e807c8fad1f82766c083073e44396799f155b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 1 Jul 2016 06:32:49 +0200 Subject: [PATCH] oggparseopus: export pre-skip Bug-Id: 945, along with the following commit --- libavformat/oggparseopus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index 86d0803f0f..915ef42bab 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -57,6 +57,8 @@ static int opus_header(AVFormatContext *avf, int idx) st->codecpar->channels = AV_RL8(packet + 9); priv->pre_skip = AV_RL16(packet + 10); + st->codecpar->initial_padding = priv->pre_skip; + extradata = av_malloc(os->psize + AV_INPUT_BUFFER_PADDING_SIZE); if (!extradata) return AVERROR(ENOMEM);