fix build with current libavcodec