libvorbis: only store version string if bitexact is not set.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 22 May 2012 15:18:39 +0000 (17:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 22 May 2012 18:37:12 +0000 (20:37 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libvorbis.c

index 54e9f13..ba786e8 100644 (file)
@@ -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))) {