Commit 770d3c85 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

vc2enc: do not print the lavc version if the bitexact flag is enabled

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent e3df56f5
...@@ -994,8 +994,9 @@ static av_cold int vc2_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ...@@ -994,8 +994,9 @@ static av_cold int vc2_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
int ret = 0; int ret = 0;
int sig_size = 256; int sig_size = 256;
VC2EncContext *s = avctx->priv_data; VC2EncContext *s = avctx->priv_data;
const char aux_data[] = LIBAVCODEC_IDENT; const int bitexact = avctx->flags & AV_CODEC_FLAG_BITEXACT;
const int aux_data_size = sizeof(aux_data); 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; const int header_size = 100 + aux_data_size;
int64_t max_frame_bytes, r_bitrate = avctx->bit_rate >> (s->interlaced); int64_t max_frame_bytes, r_bitrate = avctx->bit_rate >> (s->interlaced);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment