---
libavcodec/4xm.c | 2 +-
libavfilter/vf_gradfun.c | 2 +-
libavfilter/vf_yadif.c | 2 +-
libavformat/nsvdec.c | 2 +-
libswscale/output.c | 6 ++----
5 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 8d7db98..b98237d 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -696,7 +696,7 @@ static int decode_i_frame(FourXContext *f, const uint8_t
*buf, int length)
const int width = f->avctx->width;
const int height = f->avctx->height;
const unsigned int bitstream_size = AV_RL32(buf);
- int token_count av_unused;
+ int token_count;
unsigned int prestream_size;
const uint8_t *prestream;
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index c6663c4..9da9b20 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -120,7 +120,7 @@ static av_cold int init(AVFilterContext *ctx, const char
*args, void *opaque)
GradFunContext *gf = ctx->priv;
float thresh = 1.2;
int radius = 16;
- av_unused int cpu_flags = av_get_cpu_flags();
+ int cpu_flags = av_get_cpu_flags();
if (args)
sscanf(args, "%f:%d", &thresh, &radius);
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index ca2adb2..12b3783 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -372,7 +372,7 @@ static int query_formats(AVFilterContext *ctx)
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{
YADIFContext *yadif = ctx->priv;
- av_unused int cpu_flags = av_get_cpu_flags();
+ int cpu_flags = av_get_cpu_flags();
yadif->mode = 0;
yadif->parity = -1;
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index c5655d2..375463e 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -273,7 +273,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s)
{
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
- unsigned int av_unused file_size;
+ unsigned int file_size;
unsigned int size;
int64_t duration;
int strings_size;
diff --git a/libswscale/output.c b/libswscale/output.c
index 93a6a03..ef68c52 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -976,12 +976,11 @@ yuv2rgb_X_c_template(SwsContext *c, const int16_t
*lumFilter,
int i;
for (i = 0; i < (dstW >> 1); i++) {
- int j;
+ int j, A1, A2;
int Y1 = 1 << 18;
int Y2 = 1 << 18;
int U = 1 << 18;
int V = 1 << 18;
- int av_unused A1, A2;
const void *r, *g, *b;
for (j = 0; j < lumFilterSize; j++) {
@@ -1183,8 +1182,7 @@ yuv2rgb_full_X_c_template(SwsContext *c, const int16_t
*lumFilter,
int Y = 0;
int U = -128 << 19;
int V = -128 << 19;
- int av_unused A;
- int R, G, B;
+ int R, G, B, A;
for (j = 0; j < lumFilterSize; j++) {
Y += lumSrc[j][i] * lumFilter[j];
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel