From 995602795ce1863f07eb0e77c744a25b03982721 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 21 Apr 2017 10:13:39 +0200 Subject: [PATCH] src/io/source_avcodec.c: avoid unused variable --- src/io/source_avcodec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 0598260f..c6fee2f9 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -349,7 +349,6 @@ void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s, uint_t * read_sam SwrContext *avr = s->avr; #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */ int got_frame = 0; - int ret = 0; #ifdef HAVE_AVRESAMPLE int in_linesize = 0; int in_samples = avFrame->nb_samples; @@ -364,6 +363,8 @@ void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s, uint_t * read_sam smpl_t *output = s->output; #ifndef FF_API_LAVF_AVCTX int len = 0; +#else + int ret = 0; #endif av_init_packet (&avPacket); *read_samples = 0; -- 2.11.0