git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a4087b
)
libvorbisdec: dont try to update an empty que
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Nov 2012 15:38:00 +0000
(16:38 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Nov 2012 15:43:53 +0000
(16:43 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libvorbisenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libvorbisenc.c
b/libavcodec/libvorbisenc.c
index
6064dd5
..
c81375c
100644
(file)
--- 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;