summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-05-15 18:16:18 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-05-16 14:05:46 +0200
commit39cc4c61de719345a6bf801285339428c768cd5d (patch)
treec1bb83ddd20be7e73956530f8fa1e92cb07addc2 /libavcodec/flacdec.c
parentb25e49b187617c486ae3f50a5cbb356fc0e868bb (diff)
flacdec: drop unnecessary assert
The condition cannot happen anymore.
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index ec54dfc292..919a6925b4 100644
--- 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)