1 /*
2 * Audio Interleaving functions
3 *
4 * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com>
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
28
30 {
31 int i;
35
38 }
39 }
40
42 const int *samples_per_frame,
44 {
45 int i;
46
47 if (!samples_per_frame)
48 return -1;
49
52 return -1;
53 }
57
63 return -1;
64 }
68
71 }
72 }
73
74 return 0;
75 }
76
78 int stream_index,
int flush)
79 {
82
85 return 0;
86
90
95
99
101 }
102
106 {
107 int i;
108
109 if (pkt) {
116 return -1;
118 }
120 } else {
121 int ret;
122 // rewrite pts and dts to be decoded time line position
126 if (ret < 0)
127 return ret;
128 }
130 }
131
136 int ret;
139 if (ret < 0)
140 return ret;
141 }
142 if (ret < 0)
143 return ret;
144 }
145 }
146
148 }