From: Paul Brossier Date: Fri, 21 Apr 2017 08:13:39 +0000 (+0200) Subject: src/io/source_avcodec.c: avoid unused variable X-Git-Tag: 0.4.6~60 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=995602795ce1863f07eb0e77c744a25b03982721 src/io/source_avcodec.c: avoid unused variable --- 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;