moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.5k stars 325 forks source link

Add: register all for FFmpeg #710

Closed AreaScout closed 5 years ago

AreaScout commented 5 years ago

Description

FFmpeg init was removed with c030ee66f but it is still needed for older versions, otherwise avcodec_find_decoder_by_name fails.

Purpose

Better backward FFmpeg compatibility

AreaScout commented 5 years ago

I have implemented a versions check, so that this function will not generate linkage errors, see

https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges#L108