1 /*
2 * RSO muxer
3 * Copyright (c) 2001 Fabrice Bellard (original AU code)
4 * Copyright (c) 2010 Rafael Carre
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 {
33
36
40 }
41
45 }
46
47 /* XXX: find legal sample rates (if any) */
51 }
52
56 }
57
58 /* format header */
60 avio_wb16(pb, 0);
/* data size, will be written at EOF */
62 avio_wb16(pb, 0x0000);
/* play mode ? (0x0000 = don't loop) */
63
64 return 0;
65 }
66
68 {
70 int64_t file_size;
71 uint16_t coded_file_size;
72
74
75 if (file_size < 0)
76 return file_size;
77
80 "Output file is too big (%"PRId64" bytes >= 64kB)\n", file_size);
81 coded_file_size = 0xffff;
82 } else {
84 }
85
86 /* update file size */
90
91 return 0;
92 }
93
97 .extensions = "rso",
105 };