projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
724303e
)
[source_avcodec] show a warning only when an error occurred in swr_convert
author
Paul Brossier
<piem@piem.org>
Sun, 23 Dec 2018 04:44:18 +0000
(
05:44
+0100)
committer
Paul Brossier
<piem@piem.org>
Sun, 23 Dec 2018 04:44:18 +0000
(
05:44
+0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
257e30f
..
30f77cd
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-463,9
+463,9
@@
void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s,
(uint8_t **)&output, max_out_samples,
(const uint8_t **)avFrame->data, in_samples);
#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
(uint8_t **)&output, max_out_samples,
(const uint8_t **)avFrame->data, in_samples);
#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
- if (out_samples <
=
0) {
- AUBIO_WRN("source_avcodec:
no sample found while converting frame (%s
)\n",
- s->path);
+ if (out_samples < 0) {
+ AUBIO_WRN("source_avcodec:
error while resampling %s (%d
)\n",
+ s->path
, out_samples
);
goto beach;
}
goto beach;
}