vorbis_bitrate_flushpacket() does not return any packets that should not be
output in the bitstream.
---
libavcodec/libvorbis.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c
index eee7a4f..751f72b 100644
--- a/libavcodec/libvorbis.c
+++ b/libavcodec/libvorbis.c
@@ -270,10 +270,6 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx,
unsigned char *packets,
/* add any available packets to the output packet buffer */
while ((ret = vorbis_bitrate_flushpacket(&s->vd, &op)) == 1) {
- /* i'd love to say the following line is a hack, but sadly it's
- * not, apparently the end of stream decision is in libogg. */
- if (op.bytes == 1 && op.e_o_s)
- continue;
if (s->buffer_index + sizeof(ogg_packet) + op.bytes > BUFFER_SIZE)
{
av_log(avctx, AV_LOG_ERROR, "libvorbis: buffer overflow.");
return -1;
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel