OSDN Git Service

vaapi_h264: Enable VBR mode
authorMark Thompson <sw@jkqxz.net>
Sun, 29 Jan 2017 14:12:20 +0000 (14:12 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 8 Feb 2017 19:14:05 +0000 (19:14 +0000)
commit2201c02e6dc9f9652a8e27dec194915f05954ad0
treece708fe850e01d887f36864322ccf8878dedbcb9
parentceb28c3cc4c7921935b48904db3c559eed1597fe
vaapi_h264: Enable VBR mode

Default to using VBR when a target bitrate is set, unless the max rate
is also set and matches the target.  Changes to the Intel driver mean
that min_qp is also respected in this case, so set a codec default to
unset the value rather than using the current default inherited from
the MPEG-4 part 2 encoder.

(cherry picked from commit eddfb57210298a0a94472794485400a3a6c76196)
libavcodec/vaapi_encode_h264.c