projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a500490
)
src/io/source_avcodec.c: avoid unused variable
author
Paul Brossier
<piem@piem.org>
Fri, 21 Apr 2017 08:13:39 +0000
(10:13 +0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 21 Apr 2017 08:13:39 +0000
(10:13 +0200)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
0598260
..
c6fee2f
100644
(file)
--- 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;