Do not call deprecated av_register_all()
av_register_all() is deprecated in FFmpeg since this commit: <http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=0694d8702421e7aff1340038559c438b61bb30dd> It is now useless to call it: <https://ffmpeg.org/pipermail/ffmpeg-devel/2018-February/225051.html> Fixes <https://github.com/Genymobile/scrcpy/issues/203>.
This commit is contained in:
parent
280891837e
commit
fca806e095
1 changed files with 2 additions and 0 deletions
|
@ -274,7 +274,9 @@ int main(int argc, char *argv[]) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
|
||||||
av_register_all();
|
av_register_all();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (avformat_network_init()) {
|
if (avformat_network_init()) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue