Commit 546469d0 authored by mru's avatar mru

B frames and CABAC/CAVLC selection by Erik Slagter (erik at slagter dot name)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4057 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a2f13b9b
/*
* H.264 encoding using the x264 library
* Copyright (C) 2005 Mns Rullgrd <mru@inprovide.com>
* Copyright (C) 2005 Mans Rullgard <mru@inprovide.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -136,6 +136,9 @@ X264_init(AVCodecContext *avctx)
x4->params.rc.i_rc_buffer_size = avctx->rc_buffer_size / 1000;
if(avctx->rc_buffer_size)
x4->params.rc.b_cbr = 1;
x4->params.i_bframe = avctx->max_b_frames;
x4->params.b_cabac = avctx->coder_type == FF_CODER_TYPE_AC;
x4->params.rc.i_qp_min = avctx->qmin;
x4->params.rc.i_qp_max = avctx->qmax;
x4->params.rc.i_qp_step = avctx->max_qdiff;
......
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