1 /*
2 * Shorten demuxer
3 * Copyright (c) 2001 Fabrice Bellard
4 * Copyright (c) 2005 Alex Beregszaszi
5 * Copyright (c) 2015 Carl Eugen Hoyos
6 *
7 * This file is part of FFmpeg.
8 *
9 * FFmpeg is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * FFmpeg is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with FFmpeg; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
27
29 {
32
34 return 0;
37 return 0;
41 blocksize = 256;
42 } else {
43 unsigned k;
45 if (k > 31)
46 return 0;
49 if (k > 31)
50 return 0;
53 if (k > 31)
54 return 0;
56 }
57
58 if (internal_ftype != 2 && internal_ftype != 3 && internal_ftype != 5)
59 return 0;
61 return 0;
62 if (blocksize < 1 || blocksize > 65535)
63 return 0;
64
66 }
67
75 .extensions = "shn",
79 };