[FFmpeg-cvslog] lavc/libaomenc: Mark a potentially unused variable as av_unused.
Carl Eugen Hoyos
git at videolan.org
Tue Apr 16 15:22:08 EEST 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Tue Apr 16 14:20:43 2019 +0200| [1e8475b507ee013b99548a8eb599200bf8600bf2] | committer: Carl Eugen Hoyos
lavc/libaomenc: Mark a potentially unused variable as av_unused.
Fixes a warning:
libavcodec/libaomenc.c:816:9: warning: unused variable ‘pict_type’
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e8475b507ee013b99548a8eb599200bf8600bf2
---
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,
More information about the ffmpeg-cvslog
mailing list