mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
fix warnings, remove deprecated function call
This commit is contained in:
parent
6d874bece8
commit
196aa206cf
@ -131,7 +131,7 @@ class Mpeg {
|
|||||||
int ret;
|
int ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
av_register_all();
|
// av_register_all();
|
||||||
|
|
||||||
avformat_alloc_output_context2(&oc, NULL, NULL, filename.c_str());
|
avformat_alloc_output_context2(&oc, NULL, NULL, filename.c_str());
|
||||||
// oc->preload= (int)(0.5*AV_TIME_BASE);
|
// oc->preload= (int)(0.5*AV_TIME_BASE);
|
||||||
@ -235,6 +235,7 @@ class Mpeg {
|
|||||||
sws_ctx = sws_getContext( width, height, AV_PIX_FMT_RGB24,
|
sws_ctx = sws_getContext( width, height, AV_PIX_FMT_RGB24,
|
||||||
width, height, AV_PIX_FMT_YUV420P,
|
width, height, AV_PIX_FMT_YUV420P,
|
||||||
SWS_BICUBIC, NULL, NULL, NULL );
|
SWS_BICUBIC, NULL, NULL, NULL );
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Stop() {
|
void Stop() {
|
||||||
|
Loading…
Reference in New Issue
Block a user