fix build for libav-0.8.8 (avutil < 51.32.0)