summaryrefslogtreecommitdiff
path: root/libavcodec/apiexample.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/apiexample.c')
-rw-r--r--libavcodec/apiexample.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index 306be47f91..27ec8241e1 100644
--- a/libavcodec/apiexample.c
+++ b/libavcodec/apiexample.c
@@ -192,7 +192,8 @@ void video_encode_example(const char *filename)
c->width = 352;
c->height = 288;
/* frames per second */
- c->frame_rate = 25 * FRAME_RATE_BASE;
+ c->frame_rate = 25;
+ c->frame_rate_base= 1;
c->gop_size = 10; /* emit one intra frame every ten frames */
/* open it */