libav: fixed compiling issues with more recent versions of libavcodec