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:
b25e49b
)
flacdec: drop unnecessary assert
author
Luca Barbato
<lu_zero@gentoo.org>
Wed, 15 May 2013 16:16:18 +0000
(18:16 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Thu, 16 May 2013 12:05:46 +0000
(14:05 +0200)
The condition cannot happen anymore.
libavcodec/flacdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/flacdec.c
b/libavcodec/flacdec.c
index
ec54dfc
..
919a692
100644
(file)
--- a/
libavcodec/flacdec.c
+++ b/
libavcodec/flacdec.c
@@
-44,9
+44,6
@@
#include "flacdata.h"
#include "flacdsp.h"
-#undef NDEBUG
-#include <assert.h>
-
typedef struct FLACContext {
FLACSTREAMINFO
@@
-130,8
+127,6
@@
static int allocate_buffers(FLACContext *s)
{
int buf_size;
- assert(s->max_blocksize);
-
buf_size = av_samples_get_buffer_size(NULL, s->channels, s->max_blocksize,
AV_SAMPLE_FMT_S32P, 0);
if (buf_size < 0)