Commit 9465bc93 authored by al3x's avatar al3x

1000l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1979 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fd0f129e
...@@ -91,21 +91,21 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap ...@@ -91,21 +91,21 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap
return -ENOMEM; return -ENOMEM;
} }
dv->width = DV1394_WIDTH; /* FIXME: Need a format change parameter */
dv->height = DV1394_HEIGHT; dv->format = DV1394_NTSC;
if (ap->channel) if (ap->channel)
dv->channel = ap->channel; dv->channel = ap->channel;
else else
dv->channel = DV1394_DEFAULT_CHANNEL; dv->channel = DV1394_DEFAULT_CHANNEL;
/* FIXME: Need a format change parameter */ dv->width = DV1394_WIDTH;
dv->format = DV1394_NTSC;
if (dv->format == DV1394_NTSC) { if (dv->format == DV1394_NTSC) {
dv->height = DV1394_NTSC_HEIGHT;
dv->frame_size = DV1394_NTSC_FRAME_SIZE; dv->frame_size = DV1394_NTSC_FRAME_SIZE;
dv->frame_rate = 30; dv->frame_rate = 30;
} else { } else {
dv->height = DV1394_PAL_HEIGHT;
dv->frame_size = DV1394_PAL_FRAME_SIZE; dv->frame_size = DV1394_PAL_FRAME_SIZE;
dv->frame_rate = 25; dv->frame_rate = 25;
} }
......
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
#define DV1394_RING_FRAMES 20 #define DV1394_RING_FRAMES 20
#define DV1394_WIDTH 720 #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. */ /* This is the public user-space interface. Try not to break it. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment