diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2009-10-19 09:35:19 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2009-10-19 09:35:19 +0000 |
commit | 1953898162849b95b18622f5804b615dc3c55bb9 (patch) | |
tree | b08badfa115a6172e03d5fa8feb82772a7d0f86c /libavcodec/libx264.c | |
parent | f2c061ec0fae5daeb5909ec7b0d0c2e1dd382e7c (diff) | |
download | ffmpeg-1953898162849b95b18622f5804b615dc3c55bb9.tar.gz |
Update libx264.c for x264 API change
Change behavior of b-pyramid option.
Originally committed as revision 20308 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 5039b6db3f..3a3f1e5176 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -181,7 +181,7 @@ static av_cold int X264_init(AVCodecContext *avctx) x4->params.b_cabac = avctx->coder_type == FF_CODER_TYPE_AC; x4->params.i_bframe_adaptive = avctx->b_frame_strategy; x4->params.i_bframe_bias = avctx->bframebias; - x4->params.b_bframe_pyramid = avctx->flags2 & CODEC_FLAG2_BPYRAMID; + 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; |