[FFmpeg-cvslog] flacdec: drop unnecessary assert
Luca Barbato
git at videolan.org
Thu May 16 17:17:01 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed May 15 18:16:18 2013 +0200| [39cc4c61de719345a6bf801285339428c768cd5d] | committer: Luca Barbato
flacdec: drop unnecessary assert
The condition cannot happen anymore.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39cc4c61de719345a6bf801285339428c768cd5d
---
libavcodec/flacdec.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index ec54dfc..919a692 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)
More information about the ffmpeg-cvslog
mailing list