annotate stream/stream_mf.c @ 25038:b2ae4a355a54

AV_WB16(..., 1000) more obviously represents one second that assigning 0x03 and 0xe8 (0x3e8 = 1000).
author reimar
date Sat, 17 Nov 2007 18:22:42 +0000
parents ab8d6b6deb63
children c1d17bd6683c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19301
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
1 /*
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
2 * Copyright (C) 2006 Benjamin Zores
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
3 * Stream layer for multiple files input, based on previous work from Albeu
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
4 *
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
8 * (at your option) any later version.
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
9 *
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
13 * GNU General Public License for more details.
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
14 *
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
16 * along with this program; if not, write to the Free Software Foundation,
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
18 */
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
19
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
20 #include "config.h"
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
21
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
22 #include <stdlib.h>
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
23 #include <string.h>
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
24
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
25 #include "stream.h"
19312
ab8d6b6deb63 proper inclusion of demuxer.h (including libmpdemux in Makefile only was to make previous split easier)
ben
parents: 19301
diff changeset
26 #include "libmpdemux/demuxer.h"
19301
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
27
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
28 static int
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
29 mf_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
30 {
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
31 stream->type = STREAMTYPE_MF;
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
32 *file_format = DEMUXER_TYPE_MF;
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
33
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
34 return STREAM_OK;
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
35 }
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
36
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
37 stream_info_t stream_info_mf = {
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
38 "Multiple files input",
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
39 "mf",
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
40 "Benjamin Zores, Albeu",
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
41 "",
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
42 mf_stream_open,
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
43 { "mf", NULL },
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
44 NULL,
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
45 1
097e5bc71210 added dedicated file for mf:// input
ben
parents:
diff changeset
46 };