annotate libmpdemux/stream_null.c @ 14879:3b89d966f17e

Sync with 1.893: 1.881: added new mpeg muxer options 1.882: done in a previous commit 1.883: fixes for previous commits 1.884: Mention that vstrict is necessary for some codecs, add ffvhuff. 1.885: Finish incomplete -af-adv documentation. 1.886: Sync -channels and -srate options with the XML docs. 1.887: spelling, wording and consistency fixes 1.888: renamed init_adelay to vdelay with opposite range 1.889: List the 'context' option for the ffvhuff codec. 1.890: indentation fix 1.891: vstrict vs mjpeg update, typo 1.892: done in a previous commit 1.893: done in a previous commit
author gpoirier
date Tue, 01 Mar 2005 20:33:50 +0000
parents 233802490b0e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9901
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
1
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
2 #include "config.h"
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
3
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
4 #include <stdlib.h>
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
5 #include <string.h>
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
6
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
7 #include "stream.h"
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
8 #include "demuxer.h"
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
9
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
10 #ifdef USE_TV
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
11 extern char* tv_param_channel;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
12 #endif
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
13
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
14
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
15 static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
16 stream->type = STREAMTYPE_DUMMY;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
17
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
18 if(strncmp("mf://",stream->url,5) == 0) {
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
19 *file_format = DEMUXER_TYPE_MF;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
20 }
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
21 #ifdef USE_TV
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
22 else if (strncmp("tv://",stream->url,5) == 0) {
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
23 *file_format = DEMUXER_TYPE_TV;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
24 if(stream->url[5] != '\0')
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
25 tv_param_channel = strdup(stream->url + 5);
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
26 }
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
27 #endif
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
28 return 1;
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
29 }
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
30
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
31
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
32 stream_info_t stream_info_null = {
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
33 "Null stream",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
34 "null",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
35 "Albeu",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
36 "",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
37 open_s,
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
38 {
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
39 #ifdef USE_TV
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
40 "tv",
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
41 #endif
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
42 "mf", "null", NULL },
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
43 NULL,
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
44 0 // Urls are an option string
233802490b0e Add a null streamv Currently used for tv and mf. Could be used to
albeu
parents:
diff changeset
45 };