mirror of https://git.ffmpeg.org/ffmpeg.git
1000l
Originally committed as revision 1979 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
377ea75708
commit
cad6f6cdee
|
@ -91,21 +91,21 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
dv->width = DV1394_WIDTH;
|
||||
dv->height = DV1394_HEIGHT;
|
||||
/* FIXME: Need a format change parameter */
|
||||
dv->format = DV1394_NTSC;
|
||||
|
||||
if (ap->channel)
|
||||
dv->channel = ap->channel;
|
||||
else
|
||||
dv->channel = DV1394_DEFAULT_CHANNEL;
|
||||
|
||||
/* FIXME: Need a format change parameter */
|
||||
dv->format = DV1394_NTSC;
|
||||
|
||||
dv->width = DV1394_WIDTH;
|
||||
if (dv->format == DV1394_NTSC) {
|
||||
dv->height = DV1394_NTSC_HEIGHT;
|
||||
dv->frame_size = DV1394_NTSC_FRAME_SIZE;
|
||||
dv->frame_rate = 30;
|
||||
} else {
|
||||
dv->height = DV1394_PAL_HEIGHT;
|
||||
dv->frame_size = DV1394_PAL_FRAME_SIZE;
|
||||
dv->frame_rate = 25;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
#define DV1394_RING_FRAMES 20
|
||||
|
||||
#define DV1394_WIDTH 720
|
||||
#define DV1394_HEIGHT 576
|
||||
#define DV1394_NTSC_HEIGHT 480
|
||||
#define DV1394_PAL_HEIGHT 576
|
||||
|
||||
/* This is the public user-space interface. Try not to break it. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue