/* * FLAC common code * Copyright (c) 2009 Justin Ruggles * * This file is part of FFmpeg. * * 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. * * 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 FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "libavutil/channel_layout.h" #include "libavutil/crc.h" #include "libavutil/log.h" #include "bytestream.h" #include "get_bits.h" #include "flac.h" #include "flacdata.h" #include "flac_parse.h" static const int8_t sample_size_table[] = …; static const AVChannelLayout flac_channel_layouts[8] = …; static int64_t get_utf8(GetBitContext *gb) { … } int ff_flac_decode_frame_header(void *logctx, GetBitContext *gb, FLACFrameInfo *fi, int log_level_offset) { … } int ff_flac_is_extradata_valid(AVCodecContext *avctx, uint8_t **streaminfo_start) { … } void ff_flac_set_channel_layout(AVCodecContext *avctx, int channels) { … } int ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s, const uint8_t *buffer) { … }