From 6cd17cf5f1c009e1eb2b1e1c14678e8be68bdd3c Mon Sep 17 00:00:00 2001 From: cxp2249 Date: Mon, 29 Jan 2018 20:33:11 +0100 Subject: creator file modified --- src/creator.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/creator.c') diff --git a/src/creator.c b/src/creator.c index 71a981f..9990972 100644 --- a/src/creator.c +++ b/src/creator.c @@ -1,5 +1,5 @@ -#include -#include +#include "creator.h" +#include "render.h" static void encode(AVCodecContext *enc_ctx, AVFrame *frame, AVPacket *pkt, FILE *outfile) @@ -24,7 +24,7 @@ static void encode(AVCodecContext *enc_ctx, AVFrame *frame, AVPacket *pkt, av_packet_unref(pkt); } } -int generateVideo(filename, int width, int height, int fps, int bitRate, Config *config, u32 (*sfunc) (long double, long double, u32)) +int generateVideo(filename, int length, int width, int height, int fps, int bitRate, Config *config, u32 (*sfunc) (long double, long double, u32)) { const char *filename; const AVCodec *codec; @@ -101,7 +101,8 @@ int generateVideo(filename, int width, int height, int fps, int bitRate, Config y_max = y_max_s; _config = config; _sfunc = sfunc; - for(i=0;i<25;i++) { + + for(i=0;i