We do not need to keep setting it while flushing the encoder.
---
 libavcodec/libvorbis.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c
index 991c64f..a084a46 100644
--- a/libavcodec/libvorbis.c
+++ b/libavcodec/libvorbis.c
@@ -267,12 +267,13 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, 
unsigned char *packets,
             return vorbis_error_to_averror(ret);
         }
     } else {
-        if (!s->eof)
+        if (!s->eof) {
             if ((ret = vorbis_analysis_wrote(&s->vd, 0)) < 0) {
                 av_log(avctx, AV_LOG_ERROR, "error in 
vorbis_analysis_wrote()\n");
                 return vorbis_error_to_averror(ret);
             }
-        s->eof = 1;
+            s->eof = 1;
+        }
     }
 
     /* retrieve available packets from libvorbis */
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to