OSDN Git Service

Minor cleanup in libx264.c
authorEtienne Buira <etienne.buira.lists@free.fr>
Thu, 26 May 2011 17:48:59 +0000 (19:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 27 May 2011 02:36:13 +0000 (04:36 +0200)
Not needed as overwritten later on (look for "// update AVCodecContext
with x264 parameters"), and not accessed inbetween.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libx264.c

index 28683a9..7a58f2b 100644 (file)
@@ -228,7 +228,6 @@ static av_cold int X264_init(AVCodecContext *avctx)
     x4->params.i_bframe_adaptive = avctx->b_frame_strategy;
     x4->params.i_bframe_bias     = avctx->bframebias;
     x4->params.i_bframe_pyramid  = avctx->flags2 & CODEC_FLAG2_BPYRAMID ? X264_B_PYRAMID_NORMAL : X264_B_PYRAMID_NONE;
-    avctx->has_b_frames          = avctx->flags2 & CODEC_FLAG2_BPYRAMID ? 2 : !!avctx->max_b_frames;
 
     x4->params.i_keyint_min = avctx->keyint_min;
     if (x4->params.i_keyint_min > x4->params.i_keyint_max)