From 1e8475b507ee013b99548a8eb599200bf8600bf2 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 16 Apr 2019 14:20:43 +0200 Subject: [PATCH] lavc/libaomenc: Mark a potentially unused variable as av_unused. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a warning: libavcodec/libaomenc.c:816:9: warning: unused variable ‘pict_type’ --- libavcodec/libaomenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index a42a5b7027..9b4fb3b4eb 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @@ -813,7 +813,7 @@ static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame, AVPacket *pkt) { AOMContext *ctx = avctx->priv_data; - int pict_type; + int av_unused pict_type; int ret = ff_alloc_packet2(avctx, pkt, cx_frame->sz, 0); if (ret < 0) { av_log(avctx, AV_LOG_ERROR,