Path: blob/master/dep/ffmpeg/include/libavcodec/adts_parser.h
4216 views
/*1* This file is part of FFmpeg.2*3* FFmpeg is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* FFmpeg is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with FFmpeg; if not, write to the Free Software15* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA16*/1718#ifndef AVCODEC_ADTS_PARSER_H19#define AVCODEC_ADTS_PARSER_H2021#include <stddef.h>22#include <stdint.h>2324#define AV_AAC_ADTS_HEADER_SIZE 72526/**27* Extract the number of samples and frames from AAC data.28* @param[in] buf pointer to AAC data buffer29* @param[out] samples Pointer to where number of samples is written30* @param[out] frames Pointer to where number of frames is written31* @return Returns 0 on success, error code on failure.32*/33int av_adts_header_parse(const uint8_t *buf, uint32_t *samples,34uint8_t *frames);3536#endif /* AVCODEC_ADTS_PARSER_H */373839