aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dc1394.c
diff options
context:
space:
mode:
authorSam Hocevar <sam+ffmpeg@zoy.org>2005-08-11 22:26:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-08-11 22:26:12 +0000
commit9f747cc328de389eb3748038202f753316a0a6ab (patch)
treebdf828f1697214ddf751ea675232f01e80105de2 /libavformat/dc1394.c
parentdbbcfd6bc3d283d9b29e3d4f2e6409fb91e8617b (diff)
downloadffmpeg-9f747cc328de389eb3748038202f753316a0a6ab.tar.gz
minor compilation fix
A few files are not in sync with the change of AVStream's codec member from inline struct to pointer. patch by (Sam Hocevar: sam, zoy org) Originally committed as revision 4505 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dc1394.c')
-rw-r--r--libavformat/dc1394.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/dc1394.c b/libavformat/dc1394.c
index 551042a4e2..bcc9bd9b04 100644
--- a/libavformat/dc1394.c
+++ b/libavformat/dc1394.c
@@ -80,13 +80,13 @@ static int dc1394_read_header(AVFormatContext *c, AVFormatParameters * ap)
if (!vst)
return -1;
av_set_pts_info(vst, 64, 1, 1000);
- vst->codec.codec_type = CODEC_TYPE_VIDEO;
- vst->codec.codec_id = CODEC_ID_RAWVIDEO;
- vst->codec.time_base.den = fps->frame_rate;
- vst->codec.time_base.num = 1000;
- vst->codec.width = fmt->width;
- vst->codec.height = fmt->height;
- vst->codec.pix_fmt = fmt->pix_fmt;
+ vst->codec->codec_type = CODEC_TYPE_VIDEO;
+ vst->codec->codec_id = CODEC_ID_RAWVIDEO;
+ vst->codec->time_base.den = fps->frame_rate;
+ vst->codec->time_base.num = 1000;
+ vst->codec->width = fmt->width;
+ vst->codec->height = fmt->height;
+ vst->codec->pix_fmt = fmt->pix_fmt;
/* packet init */
av_init_packet(&dc1394->packet);
@@ -97,7 +97,7 @@ static int dc1394_read_header(AVFormatContext *c, AVFormatParameters * ap)
dc1394->current_frame = 0;
dc1394->fps = fps->frame_rate;
- vst->codec.bit_rate = av_rescale(dc1394->packet.size * 8, fps->frame_rate, 1000);
+ vst->codec->bit_rate = av_rescale(dc1394->packet.size * 8, fps->frame_rate, 1000);
/* Now lets prep the hardware */
dc1394->handle = dc1394_create_handle(0); /* FIXME: gotta have ap->port */