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

libvorbisdec: dont try to update an empty que

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-11-11 16:38:00 +01:00
parent 0a4087b893
commit 8c4145343d

View File

@ -358,7 +358,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
if (duration > 0) { if (duration > 0) {
/* we do not know encoder delay until we get the first packet from /* we do not know encoder delay until we get the first packet from
* libvorbis, so we have to update the AudioFrameQueue counts */ * libvorbis, so we have to update the AudioFrameQueue counts */
if (!avctx->delay) { if (!avctx->delay && s->afq.frames) {
avctx->delay = duration; avctx->delay = duration;
av_assert0(!s->afq.remaining_delay); av_assert0(!s->afq.remaining_delay);
s->afq.frames->duration += duration; s->afq.frames->duration += duration;