ffmpeg | branch: master | Rostislav Pehlivanov <atomnu...@gmail.com> | Thu May 5 00:18:03 2016 +0100| [770d3c85afad478b1b53ad8221ee9d334bbfe91f] | committer: Rostislav Pehlivanov
vc2enc: do not print the lavc version if the bitexact flag is enabled Reviewed-by: Michael Niedermayer <mich...@niedermayer.cc> Signed-off-by: Rostislav Pehlivanov <atomnu...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=770d3c85afad478b1b53ad8221ee9d334bbfe91f --- libavcodec/vc2enc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index 943198b..6d24552 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -994,8 +994,9 @@ static av_cold int vc2_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, int ret = 0; int sig_size = 256; VC2EncContext *s = avctx->priv_data; - const char aux_data[] = LIBAVCODEC_IDENT; - const int aux_data_size = sizeof(aux_data); + const int bitexact = avctx->flags & AV_CODEC_FLAG_BITEXACT; + const char *aux_data = bitexact ? "Lavc" : LIBAVCODEC_IDENT; + const int aux_data_size = bitexact ? sizeof("Lavc") : sizeof(LIBAVCODEC_IDENT); const int header_size = 100 + aux_data_size; int64_t max_frame_bytes, r_bitrate = avctx->bit_rate >> (s->interlaced); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog