diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 16:38:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 16:43:53 +0100 |
commit | 8c4145343d3963c0c6ab94d11774815ff0bb28e5 (patch) | |
tree | 28cebe7f647149a4d57486f48d2aa1051a8f3957 | |
parent | 0a4087b8930d283aeec0aaf15d9991b6b1765597 (diff) | |
download | ffmpeg-8c4145343d3963c0c6ab94d11774815ff0bb28e5.tar.gz |
libvorbisdec: dont try to update an empty que
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libvorbisenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c index 6064dd5649..c81375c8ef 100644 --- a/libavcodec/libvorbisenc.c +++ b/libavcodec/libvorbisenc.c @@ -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; |