Module: libav Branch: master Commit: d0a603a534a0ee4b255e5e72742428a7f7f42b83
Author: Anton Khirnov <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Thu Oct 20 11:03:20 2016 +0200 examples/encode_video: set the framerate --- doc/examples/encode_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/examples/encode_video.c b/doc/examples/encode_video.c index c5f3853..b955cce 100644 --- a/doc/examples/encode_video.c +++ b/doc/examples/encode_video.c @@ -69,7 +69,9 @@ int main(int argc, char **argv) c->width = 352; c->height = 288; /* frames per second */ - c->time_base= (AVRational){1,25}; + c->time_base = (AVRational){1, 25}; + c->framerate = (AVRational){25, 1}; + c->gop_size = 10; /* emit one intra frame every ten frames */ c->max_b_frames=1; c->pix_fmt = AV_PIX_FMT_YUV420P; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
