mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 09:11:17 +00:00
avcodec/libaomenc: fix the check for presence of encoder interface
ctx->encoder is not a pointer. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
9f323cb04c
commit
adc38738cb
@ -400,7 +400,7 @@ static av_cold int aom_free(AVCodecContext *avctx)
|
|||||||
#if defined(AOM_CTRL_AV1E_GET_NUM_OPERATING_POINTS) && \
|
#if defined(AOM_CTRL_AV1E_GET_NUM_OPERATING_POINTS) && \
|
||||||
defined(AOM_CTRL_AV1E_GET_SEQ_LEVEL_IDX) && \
|
defined(AOM_CTRL_AV1E_GET_SEQ_LEVEL_IDX) && \
|
||||||
defined(AOM_CTRL_AV1E_GET_TARGET_SEQ_LEVEL_IDX)
|
defined(AOM_CTRL_AV1E_GET_TARGET_SEQ_LEVEL_IDX)
|
||||||
if (ctx->encoder->iface && !(avctx->flags & AV_CODEC_FLAG_PASS1)) {
|
if (ctx->encoder.iface && !(avctx->flags & AV_CODEC_FLAG_PASS1)) {
|
||||||
int num_operating_points;
|
int num_operating_points;
|
||||||
int levels[32];
|
int levels[32];
|
||||||
int target_levels[32];
|
int target_levels[32];
|
||||||
|
Loading…
Reference in New Issue
Block a user