mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-22 12:05:40 +05:00
added a FFMPEG preprocessaor definition
This commit is contained in:
parent
12fd8ba93f
commit
468e661468
@ -49,7 +49,7 @@ namespace netgen
|
||||
#ifdef JPEGLIB
|
||||
#include <jpeglib.h>
|
||||
#endif
|
||||
|
||||
#define FFMPEG
|
||||
#ifdef FFMPEG
|
||||
extern "C" {
|
||||
/*
|
||||
@ -2326,7 +2326,10 @@ namespace netgen
|
||||
context->bit_rate = bitrate;
|
||||
context->width = nx;
|
||||
context->height = ny;
|
||||
context->time_base = (AVRational){ 1, 25 };
|
||||
AVRational u;
|
||||
u.den=25;
|
||||
u.num=1;
|
||||
context->time_base = u;
|
||||
context->gop_size = gopsize;
|
||||
context->max_b_frames = bframes;
|
||||
context->pix_fmt = PIX_FMT_YUV420P;
|
||||
|
Loading…
Reference in New Issue
Block a user