Commit 19e66c72 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUE

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ca2fd259
......@@ -349,6 +349,7 @@ static int libvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
avctx->delay = duration;
av_assert0(!s->afq.remaining_delay);
s->afq.frames->duration += duration;
if (s->afq.frames->pts != AV_NOPTS_VALUE)
s->afq.frames->pts -= duration;
s->afq.remaining_samples += duration;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment