avcodec/utils: cast a function argument to shut up a compiler warning