projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2b3c438
)
src/io/source_avcodec.c: improve error messages
author
Paul Brossier
<piem@piem.org>
Wed, 30 Nov 2016 16:14:38 +0000
(17:14 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 30 Nov 2016 16:14:38 +0000
(17:14 +0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
16bcfdd
..
7e33b91
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-351,12
+351,12
@@
void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s, uint_t * read_sam
int len = avcodec_decode_audio4(avCodecCtx, avFrame, &got_frame, &avPacket);
if (len < 0) {
int len = avcodec_decode_audio4(avCodecCtx, avFrame, &got_frame, &avPacket);
if (len < 0) {
- AUBIO_ERR("
E
rror while decoding %s\n", s->path);
+ AUBIO_ERR("
source_avcodec: e
rror while decoding %s\n", s->path);
goto beach;
}
#endif
if (got_frame == 0) {
goto beach;
}
#endif
if (got_frame == 0) {
-
//AUBIO_ERR("Could not get frame for (%s)
\n", s->path);
+
AUBIO_WRN("source_avcodec: did not get a frame when reading %s
\n", s->path);
goto beach;
}
goto beach;
}
@@
-370,7
+370,7
@@
void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s, uint_t * read_sam
(uint8_t **)&output, out_linesize, max_out_samples,
(uint8_t **)avFrame->data, in_linesize, in_samples);
if (out_samples <= 0) {
(uint8_t **)&output, out_linesize, max_out_samples,
(uint8_t **)avFrame->data, in_linesize, in_samples);
if (out_samples <= 0) {
-
//AUBIO_ERR("N
o sample found while converting frame (%s)\n", s->path);
+
AUBIO_WRN("source_avcodec: n
o sample found while converting frame (%s)\n", s->path);
goto beach;
}
goto beach;
}