OSDN Git Service

libx264: fix setting some options.
authorAnton Khirnov <anton@khirnov.net>
Thu, 1 Sep 2011 10:59:29 +0000 (12:59 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 6 Sep 2011 18:13:28 +0000 (20:13 +0200)
commitbb73cda2f6667aa2c1b805a31a10ce9d59c3293d
tree74977aafc6afc7c5e393aa73d2fbb95c02767008
parentd8dee0e7bd5c7b96b355b96929ae7fb39ded4c3a
libx264: fix setting some options.

Specifically: gop_size, max_b_frames, scenechange_threshold, qmin, qmax,
max_qdiff, qblur, qcompress and refs.

Change their default values to -1 and only use them if the user
explicitly set them. Otherwise x264 defaults are used.

Move setting those options after x264_param_default_preset(), so they
don't get overwritten by it.
libavcodec/libx264.c
libavcodec/options.c