1 /*
2 * TTA demuxer
3 * Copyright (c) 2006 Alex Beregszaszi
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
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
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
30
31 typedef struct {
36
39 {
41 }
42
44 {
51 return 0;
52 }
53
55 {
58 int i, channels,
bps, samplerate;
59 uint64_t framepos, start_offset;
60 uint32_t nb_samples, crc;
61
63
68
73 if(samplerate <= 0 || samplerate > 1000000){
76 }
77
79 if (!nb_samples) {
82 }
83
88 }
89
96
100 }
101
103 if (!st)
105
109
111
114
117
124 }
129 }
130
136
141 }
142
143 return 0;
144 }
145
147 {
151
152 // FIXME!
155
157
163 }
164
166 {
170 if (index < 0)
171 return -1;
173 return -1;
174
176
177 return 0;
178 }
179
188 .extensions = "tta",
189 };