[FFmpeg-devel] [PATCH] vc2enc: do not print lavc version when the bitexact flag is enabled

James Almer jamrial at gmail.com
Wed May 4 05:01:53 CEST 2016


On 5/3/2016 9:39 PM, Rostislav Pehlivanov wrote:
> Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> ---
>  libavcodec/vc2enc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
> index 943198b..6226558 100644
> --- a/libavcodec/vc2enc.c
> +++ b/libavcodec/vc2enc.c
> @@ -994,7 +994,8 @@ 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 char *aux_data = avctx->flags & AV_CODEC_FLAG_BITEXACT ?
> +                           NULL : LIBAVCODEC_IDENT;

IMO "Lavc" would be better.

>      const int aux_data_size = sizeof(aux_data);
>      const int header_size = 100 + aux_data_size;
>      int64_t max_frame_bytes, r_bitrate = avctx->bit_rate >> (s->interlaced);
> 



More information about the ffmpeg-devel mailing list