]> git.sesse.net Git - ffmpeg/commit
lavc/libopenh264enc: Allow specifying the profile through AVCodecContext
authorLinjie Fu <linjie.fu@intel.com>
Wed, 6 May 2020 13:47:51 +0000 (21:47 +0800)
committerLinjie Fu <linjie.fu@intel.com>
Wed, 13 May 2020 01:55:47 +0000 (09:55 +0800)
commite3e2702d400e047d7a12b3c4f7ee666ffdafd090
treefcdcada77461aa897c0cc1142dc31997b60c0aec
parentd3a7bdd4ac54349aea9150a234478635d50ebd87
lavc/libopenh264enc: Allow specifying the profile through AVCodecContext

And determine the profile with following priority:
1. s->profile; then
2. avctx->profile; then
3. s->cabac; then
4. a default profile.

This seems more natural in case user somehow sets both avctx->profile and
s->profile.

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