|
|
@ -34,6 +34,7 @@ |
|
|
|
#include <limits.h> |
|
|
|
#include <limits.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/audioconvert.h" |
|
|
|
#include "libavutil/audioconvert.h" |
|
|
|
|
|
|
|
#include "libavutil/avassert.h" |
|
|
|
#include "libavutil/crc.h" |
|
|
|
#include "libavutil/crc.h" |
|
|
|
#include "avcodec.h" |
|
|
|
#include "avcodec.h" |
|
|
|
#include "internal.h" |
|
|
|
#include "internal.h" |
|
|
@ -44,9 +45,6 @@ |
|
|
|
#include "flacdata.h" |
|
|
|
#include "flacdata.h" |
|
|
|
#include "flacdsp.h" |
|
|
|
#include "flacdsp.h" |
|
|
|
|
|
|
|
|
|
|
|
#undef NDEBUG |
|
|
|
|
|
|
|
#include <assert.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct FLACContext { |
|
|
|
typedef struct FLACContext { |
|
|
|
FLACSTREAMINFO |
|
|
|
FLACSTREAMINFO |
|
|
|
|
|
|
|
|
|
|
@ -141,7 +139,7 @@ static void allocate_buffers(FLACContext *s) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i; |
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
assert(s->max_blocksize); |
|
|
|
av_assert0(s->max_blocksize); |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < s->channels; i++) { |
|
|
|
for (i = 0; i < s->channels; i++) { |
|
|
|
s->decoded[i] = av_malloc(sizeof(int32_t)*s->max_blocksize); |
|
|
|
s->decoded[i] = av_malloc(sizeof(int32_t)*s->max_blocksize); |
|
|
|