From c309365fca0fa6dd76a1f20aec6cee6115d02b9b Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 23 May 2005 14:23:18 +0000 Subject: fix compilation for LIBAVCODEC_BUILD==4754 --- client_examples/vnc2mpg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client_examples') diff --git a/client_examples/vnc2mpg.c b/client_examples/vnc2mpg.c index d28a3c9..284f4b5 100644 --- a/client_examples/vnc2mpg.c +++ b/client_examples/vnc2mpg.c @@ -65,8 +65,13 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id, int w, int h) c->width = w; c->height = h; /* frames per second */ +#if LIBAVCODEC_BUILD<4754 c->frame_rate = STREAM_FRAME_RATE; c->frame_rate_base = 1; +#else + c->time_base.den = STREAM_FRAME_RATE; + c->time_base.num = 1; +#endif c->gop_size = 12; /* emit one intra frame every twelve frames at most */ if (c->codec_id == CODEC_ID_MPEG2VIDEO) { /* just for testing, we also add B frames */ -- cgit v1.2.3