diff options
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r-- | libavcodec/flacdec.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index f3f1b3a..61c30e8 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -2,20 +2,20 @@ * FLAC (Free Lossless Audio Codec) decoder * Copyright (c) 2003 Alex Beregszaszi * - * This file is part of Libav. + * This file is part of FFmpeg. * - * Libav is free software; you can redistribute it and/or + * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * Libav is distributed in the hope that it will be useful, + * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software + * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ @@ -34,6 +34,7 @@ #include <limits.h> #include "libavutil/audioconvert.h" +#include "libavutil/avassert.h" #include "libavutil/crc.h" #include "avcodec.h" #include "internal.h" @@ -44,9 +45,6 @@ #include "flacdata.h" #include "flacdsp.h" -#undef NDEBUG -#include <assert.h> - typedef struct FLACContext { FLACSTREAMINFO @@ -141,7 +139,7 @@ static void allocate_buffers(FLACContext *s) { int i; - assert(s->max_blocksize); + av_assert0(s->max_blocksize); for (i = 0; i < s->channels; i++) { s->decoded[i] = av_malloc(sizeof(int32_t)*s->max_blocksize); |