OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f3a0b2
)
wavpack: remove a useless check.
author
Anton Khirnov
<anton@khirnov.net>
Sun, 26 May 2013 08:39:55 +0000
(10:39 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 28 May 2013 06:03:24 +0000
(08:03 +0200)
Number of samples in the first block is checked to be strictly positive
earlier in wavpack_decode_frame() and number of samples in all the other
blocks is checked to be equal to the first one.
libavcodec/wavpack.c
patch
|
blob
|
history
diff --git
a/libavcodec/wavpack.c
b/libavcodec/wavpack.c
index
fa3682b
..
2afc1ed
100644
(file)
--- a/
libavcodec/wavpack.c
+++ b/
libavcodec/wavpack.c
@@
-797,11
+797,6
@@
static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
"a sequence: %d and %d\n", wc->samples, s->samples);
return AVERROR_INVALIDDATA;
}
-
- if (!s->samples) {
- *got_frame_ptr = 0;
- return 0;
- }
} else {
s->samples = wc->samples;
}