Browse Source

video_device fixes

Originally committed as revision 1497 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Fabrice Bellard 23 years ago
parent
commit
86fd51fbad
3 changed files with 7 additions and 3 deletions
  1. +0
    -2
      libavformat/allformats.c
  2. +5
    -1
      libavformat/avformat.h
  3. +2
    -0
      libavformat/utils.c

+ 0
- 2
libavformat/allformats.c View File

@@ -21,8 +21,6 @@
/* If you do not call this function, then you can select exactly which
formats you want to support */

char *video_device = "none";

/**
* Initialize libavcodec and register all the codecs and formats.
*/


+ 5
- 1
libavformat/avformat.h View File

@@ -379,7 +379,11 @@ int filename_number_test(const char *filename);
int video_grab_init(void);
int audio_init(void);

extern const char *v4l_device;
/* DV1394 */
int dv1394_init(void);
extern int dv1394_channel;

extern const char *video_device;
extern const char *audio_device;

#ifdef HAVE_AV_CONFIG_H


+ 2
- 0
libavformat/utils.c View File

@@ -41,6 +41,8 @@ AVInputFormat *first_iformat;
AVOutputFormat *first_oformat;
AVImageFormat *first_image_format;

const char *video_device = "none";

void av_register_input_format(AVInputFormat *format)
{
AVInputFormat **p;


Loading…
Cancel
Save