demux: adaptive: remove redundant check of CRLF
[vlc.git] / test / vlc-demux-run.c
blob334dbc618f27cb68faffca93880b6050c9ec78a4
1 /**
2 * @file vlc-demux-test.c
3 */
4 /*****************************************************************************
5 * Copyright © 2016 Rémi Denis-Courmont
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * Rémi Denis-Courmont reserves the right to redistribute this file under
13 * the terms of the GNU Lesser General Public License as published by the
14 * the Free Software Foundation; either version 2.1 or the License, or
15 * (at his option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software Foundation,
24 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 *****************************************************************************/
27 #ifdef HAVE_CONFIG_H
28 # include "config.h"
29 #endif
31 #include <stdio.h>
32 #include "src/input/demux-run.h"
34 int main(int argc, char *argv[])
36 const char *demux = NULL, *filename;
38 switch (argc)
40 case 3:
41 demux = argv[argc - 2];
42 /* fall through */
43 case 2:
44 filename = argv[argc - 1];
45 break;
46 default:
47 fprintf(stderr, "Usage: %s [demux] <filename>\n", argv[0]);
48 return 1;
51 return -vlc_demux_process_path(demux, filename);