aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc2enc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-05-05 00:18:03 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-05-05 00:20:11 +0100
commit770d3c85afad478b1b53ad8221ee9d334bbfe91f (patch)
tree4b1e36f465c56f3afa022fd87820a0192e414299 /libavcodec/vc2enc.c
parente3df56f5b4d5458e3e48d2291eed862faa699a04 (diff)
downloadffmpeg-770d3c85afad478b1b53ad8221ee9d334bbfe91f.tar.gz
vc2enc: do not print the lavc version if the bitexact flag is enabled
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/vc2enc.c')
-rw-r--r--libavcodec/vc2enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 943198b834..6d24552dc5 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);