diff options
author | cxp2249 <moritz.pirk@tuhh.de> | 2018-01-29 20:33:11 +0100 |
---|---|---|
committer | cxp2249 <moritz.pirk@tuhh.de> | 2018-01-29 20:33:11 +0100 |
commit | 6cd17cf5f1c009e1eb2b1e1c14678e8be68bdd3c (patch) | |
tree | 665be50cf7dde38f59ec7d6866556fbced8644cb /src | |
parent | f72c4f122ccd832031925974ff521955e0e9b17c (diff) |
creator file modified
Diffstat (limited to 'src')
-rw-r--r-- | src/creator.c | 9 |
1 files changed, 5 insertions, 4 deletions
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 <creator.h> -#include <render.h> +#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<length*fps;i++) { fflush(stdout); /* make sure the frame data is writable */ ret = av_frame_make_writable(picture); |