projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
474fb0c
)
wavpack: add an error message to a failure.
author
Anton Khirnov
<anton@khirnov.net>
Sun, 26 May 2013 08:38:54 +0000
(10:38 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 28 May 2013 06:03:13 +0000
(08:03 +0200)
libavcodec/wavpack.c
patch
|
blob
|
history
diff --git
a/libavcodec/wavpack.c
b/libavcodec/wavpack.c
index
81b310f
..
fa3682b
100644
(file)
--- a/
libavcodec/wavpack.c
+++ b/
libavcodec/wavpack.c
@@
-792,8
+792,11
@@
static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
if (!wc->mkv_mode) {
s->samples = bytestream2_get_le32(&gb);
- if (s->samples != wc->samples)
+ if (s->samples != wc->samples) {
+ av_log(avctx, AV_LOG_ERROR, "Mismatching number of samples in "
+ "a sequence: %d and %d\n", wc->samples, s->samples);
return AVERROR_INVALIDDATA;
+ }
if (!s->samples) {
*got_frame_ptr = 0;