summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2005-05-23 14:23:18 +0000
committerdscho <dscho>2005-05-23 14:23:18 +0000
commitc309365fca0fa6dd76a1f20aec6cee6115d02b9b (patch)
treea72f0ee4e9ce0e47d1cb5ec2a2d8adfdfdc62e7f
parent963cb8f6b5f1e6653d1f2ce41372458db424d97b (diff)
downloadlibtdevnc-c309365f.tar.gz
libtdevnc-c309365f.zip
fix compilation for LIBAVCODEC_BUILD==4754
-rw-r--r--client_examples/vnc2mpg.c5
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 */