Fix compile error on older versions of FFmepg and Libav.