This is to fix upstream not compiling against ffmpeg 4.4 anymore.
Co-authored-by: Asada shinon <joshwoo71@gmail.com>