Commit 8c414534 authored by Michael Niedermayer's avatar Michael Niedermayer

libvorbisdec: dont try to update an empty que

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0a4087b8
......@@ -358,7 +358,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
if (duration > 0) {
/* we do not know encoder delay until we get the first packet from
* libvorbis, so we have to update the AudioFrameQueue counts */
if (!avctx->delay) {
if (!avctx->delay && s->afq.frames) {
avctx->delay = duration;
av_assert0(!s->afq.remaining_delay);
s->afq.frames->duration += 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