]> git.sesse.net Git - ffmpeg/commit
lavc/libopenh264enc: Add coder option to replace cabac
authorLinjie Fu <linjie.fu@intel.com>
Wed, 6 May 2020 13:47:52 +0000 (21:47 +0800)
committerLinjie Fu <linjie.fu@intel.com>
Wed, 13 May 2020 01:55:54 +0000 (09:55 +0800)
commite4d37abcc13b236a544d37b9a8a4aa16bebe1fda
tree4d6428d9866e3f93784e8c8a3546edd73f38298e
parente3e2702d400e047d7a12b3c4f7ee666ffdafd090
lavc/libopenh264enc: Add coder option to replace cabac

Set DEPRECATED flag to option cabac, replace with coder. The
priority logic is:
1. s->coder; then
2. avctx->coder_type; then
3. s->cabac.

Change the default option to -1 and allow the default cabac to be
determined by profile.

Add FF_API_OPENH264_CABAC macro for cabac to remove this option after
LIBAVCODEC_VERSION_MAJOR = 59.

Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
libavcodec/libopenh264enc.c
libavcodec/version.h