You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avcodec/libaomenc: Avoid av_unused
pict_type is always used since 5e0eac3d4566839598f6d6fe5d77770023d6713a; ctx in set_pix_fmt() seems to have been always unused. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
James Almer
parent
7435a3180d
commit
8a46fe1a7d
@@ -484,7 +484,6 @@ static int set_pix_fmt(AVCodecContext *avctx, aom_codec_caps_t codec_caps,
|
||||
struct aom_codec_enc_cfg *enccfg, aom_codec_flags_t *flags,
|
||||
aom_img_fmt_t *img_fmt)
|
||||
{
|
||||
av_unused AOMContext *ctx = avctx->priv_data;
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
|
||||
enccfg->g_bit_depth = enccfg->g_input_bit_depth = desc->comp[0].depth;
|
||||
switch (avctx->pix_fmt) {
|
||||
@@ -1090,7 +1089,7 @@ static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame,
|
||||
AVPacket *pkt)
|
||||
{
|
||||
AOMContext *ctx = avctx->priv_data;
|
||||
av_unused int pict_type;
|
||||
enum AVPictureType pict_type;
|
||||
int ret = ff_get_encode_buffer(avctx, pkt, cx_frame->sz, 0);
|
||||
if (ret < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user