Remove compilation warning when compiling with libav or older versions of ffmpeg