From 196aa206cf78bd6639022fbdd32ac61256024603 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 28 Aug 2019 16:19:12 +0200 Subject: [PATCH] fix warnings, remove deprecated function call --- ng/encoding.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ng/encoding.hpp b/ng/encoding.hpp index 4f2b5fd2..66261989 100644 --- a/ng/encoding.hpp +++ b/ng/encoding.hpp @@ -131,7 +131,7 @@ class Mpeg { int ret; int i; - av_register_all(); + // av_register_all(); avformat_alloc_output_context2(&oc, NULL, NULL, filename.c_str()); // oc->preload= (int)(0.5*AV_TIME_BASE); @@ -235,6 +235,7 @@ class Mpeg { sws_ctx = sws_getContext( width, height, AV_PIX_FMT_RGB24, width, height, AV_PIX_FMT_YUV420P, SWS_BICUBIC, NULL, NULL, NULL ); + return 0; } void Stop() {