mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
Avoid deprecated av_register_all with version check.
This commit is contained in:
parent
1a702de9e4
commit
1dc2eb1cc8
2 changed files with 13 additions and 2 deletions
|
@ -315,8 +315,8 @@ public:
|
||||||
, cbFunc(func)
|
, cbFunc(func)
|
||||||
, cbArg(arg)
|
, cbArg(arg)
|
||||||
{
|
{
|
||||||
av_register_all();
|
//av_register_all();
|
||||||
avcodec_register_all();
|
//avcodec_register_all();
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -132,7 +132,18 @@ struct vdec_context final
|
||||||
, cb_func(func)
|
, cb_func(func)
|
||||||
, cb_arg(arg)
|
, 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();
|
avcodec_register_all();
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#else
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue