ref: 995602795ce1863f07eb0e77c744a25b03982721
parent: a5004903baa9425da41248927668bbf6f35975a8
author: Paul Brossier <piem@piem.org>
date: Fri Apr 21 06:13:39 EDT 2017
src/io/source_avcodec.c: avoid unused variable
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -349,7 +349,6 @@
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 @@
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;