diff options
author | dscho <dscho> | 2005-05-23 14:23:18 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-05-23 14:23:18 +0000 |
commit | c309365fca0fa6dd76a1f20aec6cee6115d02b9b (patch) | |
tree | a72f0ee4e9ce0e47d1cb5ec2a2d8adfdfdc62e7f /client_examples | |
parent | 963cb8f6b5f1e6653d1f2ce41372458db424d97b (diff) | |
download | libtdevnc-c309365fca0fa6dd76a1f20aec6cee6115d02b9b.tar.gz libtdevnc-c309365fca0fa6dd76a1f20aec6cee6115d02b9b.zip |
fix compilation for LIBAVCODEC_BUILD==4754
Diffstat (limited to 'client_examples')
-rw-r--r-- | client_examples/vnc2mpg.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |