| OLD | NEW |
| 1 /* | 1 /* |
| 2 * AIFF/AIFF-C demuxer | 2 * AIFF/AIFF-C demuxer |
| 3 * Copyright (c) 2006 Patrick Guimond | 3 * Copyright (c) 2006 Patrick Guimond |
| 4 * | 4 * |
| 5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
| 6 * | 6 * |
| 7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
| 11 * | 11 * |
| 12 * FFmpeg is distributed in the hope that it will be useful, | 12 * FFmpeg is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
| 16 * | 16 * |
| 17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
| 18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
| 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "libavutil/intfloat_readwrite.h" | 22 #include "libavutil/intfloat_readwrite.h" |
| 23 #include "avformat.h" | 23 #include "avformat.h" |
| 24 #include "raw.h" | 24 #include "pcm.h" |
| 25 #include "aiff.h" | 25 #include "aiff.h" |
| 26 | 26 |
| 27 #define AIFF 0 | 27 #define AIFF 0 |
| 28 #define AIFF_C_VERSION1 0xA2805140 | 28 #define AIFF_C_VERSION1 0xA2805140 |
| 29 | 29 |
| 30 typedef struct { | 30 typedef struct { |
| 31 int64_t data_end; | 31 int64_t data_end; |
| 32 } AIFFInputContext; | 32 } AIFFInputContext; |
| 33 | 33 |
| 34 static enum CodecID aiff_codec_get_id(int bps) | 34 static enum CodecID aiff_codec_get_id(int bps) |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 "aiff", | 315 "aiff", |
| 316 NULL_IF_CONFIG_SMALL("Audio IFF"), | 316 NULL_IF_CONFIG_SMALL("Audio IFF"), |
| 317 sizeof(AIFFInputContext), | 317 sizeof(AIFFInputContext), |
| 318 aiff_probe, | 318 aiff_probe, |
| 319 aiff_read_header, | 319 aiff_read_header, |
| 320 aiff_read_packet, | 320 aiff_read_packet, |
| 321 NULL, | 321 NULL, |
| 322 pcm_read_seek, | 322 pcm_read_seek, |
| 323 .codec_tag= (const AVCodecTag* const []){ff_codec_aiff_tags, 0}, | 323 .codec_tag= (const AVCodecTag* const []){ff_codec_aiff_tags, 0}, |
| 324 }; | 324 }; |
| OLD | NEW |