Add expected const qualifier on 'buf' to match AVCodec.decode's declaration.