Fix compile error on older versions of FFmepg 0.10 and 0.11.