1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

oggparseopus: export pre-skip

Bug-Id: 945, along with the following commit
This commit is contained in:
Anton Khirnov 2016-07-01 06:32:49 +02:00
parent 029cf99c51
commit be3e807c8f

View File

@ -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);