[FFmpeg-cvslog] libvorbis: only store version string if bitexact is not set.

Michael Niedermayer git at videolan.org
Tue May 22 20:40:56 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 22 17:18:39 2012 +0200| [d9b92980c9aa4ba1b533a59fe494f04c05ca1641] | committer: Michael Niedermayer

libvorbis: only store version string if bitexact is not set.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9b92980c9aa4ba1b533a59fe494f04c05ca1641
---

 libavcodec/libvorbis.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c
index 54e9f13..ba786e8 100644
--- a/libavcodec/libvorbis.c
+++ b/libavcodec/libvorbis.c
@@ -226,7 +226,8 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avctx)
     }
 
     vorbis_comment_init(&s->vc);
-    vorbis_comment_add_tag(&s->vc, "encoder", LIBAVCODEC_IDENT);
+    if (!(avctx->flags & CODEC_FLAG_BITEXACT))
+        vorbis_comment_add_tag(&s->vc, "encoder", LIBAVCODEC_IDENT);
 
     if ((ret = vorbis_analysis_headerout(&s->vd, &s->vc, &header, &header_comm,
                                          &header_code))) {



More information about the ffmpeg-cvslog mailing list