mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
flacdec: drop unnecessary assert
The condition cannot happen anymore.
This commit is contained in:
parent
b25e49b187
commit
39cc4c61de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user