mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 18:40:36 +00:00
Avoid deprecated av_register_all with version check.
This commit is contained in:
parent
1a702de9e4
commit
1dc2eb1cc8
@ -315,8 +315,8 @@ public:
|
||||
, cbFunc(func)
|
||||
, cbArg(arg)
|
||||
{
|
||||
av_register_all();
|
||||
avcodec_register_all();
|
||||
//av_register_all();
|
||||
//avcodec_register_all();
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
@ -132,7 +132,18 @@ struct vdec_context final
|
||||
, cb_func(func)
|
||||
, cb_arg(arg)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push, 0)
|
||||
#else
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
avcodec_register_all();
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#else
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user